ActionScript 2.0 :: Center Images In The "slideshow Using XML And Flash"
Feb 25, 2007
I'm trying to customize the flash slide show from the "Slideshow Using XML and Flash" tutorial and have a question when it comes to centering the images.
My pictures are all either 210px wide or 160px high and the area where the pictures are to be displayed is 210x160. The pictures are down-scaled versions of bigger pictures with different size, meaning that some could be 210x160 while others may be 90x160 or 210x40.
The problem here is that each picture is loaded at the same position (x,y) as globally defined (I've adjusted this to top left by setting x=0 and y=0 in the actionscript part). This obviously doesn't look to good for a picture that is 210x50 as it does for a image which is 210x160 and fills the entire display area.
So, is there any way to center the pictures when they're loaded?
View 4 Replies
Similar Posts:
Jan 12, 2009
I've found a slideshow online and have been able to modify it to my needs, but I've struck a wall when it comes to centering. I figured out how to center all the images no matter their dimensions:
[Code]...
View 1 Replies
May 29, 2008
i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.
View 1 Replies
Apr 10, 2012
I have an actionscript that loads images for a slideshow. The images are different sizes and overlays in the slideshow top left justified. I would like to center the images. Below is the actionscript. What do I need to add to it and where?
[Code]....
View 1 Replies
Jun 10, 2011
I am working on a flash project right now with the help of the tutorials found on this website and decided to use and modify this existing slideshow by Kirupa.
[URL]
What I did was, I resized it according to my projects demands, which is 1024x650 [URL]Everything is working perfectly except for one drawback.
Some of my images are sized 440x650. Normally, when I link that to the XML file provided, it is aligned by default to the left. My current solution was to resize the entire file into 1024x650 creating the illusion that the image is at the center because I included the seamless background on the saved jpeg.My question is this, is there any way I can center the 440x650 image to be displayed in the slideshow?
Kirupa's original code is this one:
[code].....
View 1 Replies
Sep 2, 2010
I installed Slideshow pro, with swfobject here: [URL] The flash loads but the images do not. I have double checked the image paths to death and they appear to be correct. Here is the html:
[Code]...
View 2 Replies
Apr 5, 2010
I'd like the slideshow to have a black boarder box with a white background. I've got two buttons which I have made in Photoshop for previous and next image. I want the background of the slideshow to be white and images to be placed into this box for the user to be able to manually go through the images.
View 1 Replies
Nov 27, 2009
how is it possible to make text appear on top of an image (slideshow) in Flex using action script (can it be done another way)?(I already found action script code that does implement the slideshow but how to show some dynamic text too?)
View 3 Replies
Jul 7, 2010
I would like to display all images from a folder in a slideshow without having to specify every file name specifically using CS4 - AS3.
View 2 Replies
Oct 18, 2006
[URL]
it loads the images and text from xml. I need this to load in two images simultaneously, 1 picture and 2 the color bar over it.. becuase each slide needs to have its own color.
I added a node in the xml file shown in red here.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
[Code].....
View 2 Replies
Jan 15, 2011
I'm in the middle of building a simple flash slideshow, using alpha fades between images. I have three layers, the first one being text, on the timeline for each layer/image. The other two layers are images, small footprint (sized and optimized in photoshop, each less than 100k). When I hit the Enter key it will play on timeline but the preview and fla file just won't start, hung up on the first frame.
Flash 5 Pro
11.0.2.489
iMac 3.2 Intel i3
10.6.6, 8GB Ram
View 2 Replies
Sep 6, 2011
I am wondering if anybody can tell me how to create a picture PUSH. I have three images that I wish to work with. By pushing I mean having an image come in from the left (or right) and place itself on top of the other (or pushing the other out of view). Like a slide show of three images scrolling along but one stops for a brief period before the other image comes into view.
View 1 Replies
Feb 10, 2012
Creating a jQuery slideshow comprised of several images with transitions is easy. But I'm trying to have a Flash animation (SWF) stand in for one of the items in the slide show. In other words, I'd like to see transitions between the following: We've tried several of the jQuery slideshow plug-ins, but the Flash animation doesn't play well -- for example, if we use a simple dissolve transition, the Flash never disappears
View 1 Replies
Jul 14, 2009
I have experience with flash slideshows, but I'm trying to find out if there is one that will read images from a folder. Basically I'm using a cms with a gallery plugin. I would like to be able to view images managed with the plugin in the flash slideshow.
View 3 Replies
Mar 23, 2006
I'm trying to do the following to a flash banner, I'd like to know if it's possible and how I would code it/do it.
1. Unlimited amount of slide support. The banner must look for 01.jpg, 02.jpg, 03.jpg... etc. Let's say the current slidshow has 4 photos, they want to be able to just upload another image and create a new .as file to make it appear in the flash slideshow.
2. each link must be in its own independent script. For example 01link.as, 02link.as, 03link.as etc.
View 6 Replies
Nov 18, 2008
I want a flash movie with image slideshow with fade effect. When image enter then some text should appear on it and when image change text should also change.
Actually i need flash like. [URL]
View 2 Replies
Jan 3, 2012
I have used this slideshow for few projects and all I've done in the past is import new images (about 100k) and publish. The image are bit map of type (png) not big about 100k size.
Without saving the file I do a "test movie". Instead of doing the slideshow it displays the first image but doesn't loop through the rest.
I'm at a bit at a lost here. The path to the image in bitmap properties on the origanal file in imported is relative but when I select a new image its full path.
View 1 Replies
Aug 24, 2009
Im a noob at flash and am stuck making a photo sideshow application. I would like to be able to point the flash file at a folder of images, which are then all put into the slideshow and played through.
View 1 Replies
Dec 9, 2003
I am trying to build a flash slideshow that uses XML to call up images and text captions. I 've found a good example of what I am looking for on macromedia's website.found here: http:[url]...
I would like to add the ability to fade between images and have a button that creates a larger jpg version in a popup window for whatever image is being displayed as current in the slideshow.Would I need 2 XML files for this or can I just use one? I prefer one. Sorry I am quite new to XML, this is my first foray into it.I can build this thing w/o XML, but it seems to be so much easier if I did it with XML.
View 7 Replies
Apr 20, 2010
Ok so I have many images all the same size in different keyframes in the same layer... I want to align them all to the stage at once... rather then each individually... how do i do this
View 1 Replies
Oct 26, 2005
how to get my images to center based on my AS (im sure that I am not referencing things correctly). The images fade fine but they still appear based on upperleft corner. I have changed reg point, etc but still to no avail.
[Code]...
View 8 Replies
Jun 26, 2009
it is an advertising movie and the images get from the XML file. In flash have an white frame and put the image in frame, one frame one image. If have 3 images, have too 3 frames however the frame is greater than the image, the image have 100px vs 90px maximums. but if the image no have this px, for exemple, 100x80, 10px of the bottom frame was showing. The images not is centred whith the frame. I not understand flash and my friend can't help me now. how center the images whith the frame?
[Code]...
View 1 Replies
Sep 13, 2009
This project uses an XML list for images and text so these elements are loaded dynamically into movieclips.
The problem is that the main images align to top left of the movieclip container that is created for them.
I have been trying to get the images to center to the container div, but no luck.[url]...
View 9 Replies
Dec 25, 2004
In canvas, I have the code:
onClipEvent (enterFrame) {
// Make canvas dynamically resize to whatever is loaded in imageClip clip and width and height matches (and only when ttally loaded )
[code].....
View 1 Replies
Aug 10, 2006
i have been looking on tremendous amount of code from several xml based image galleries but couldn't find out the right trick for the job.my knowledge at xml and actionscript is basic which might be the trouble understanding how to do it correctly.Anyway, i'm trying to load photos from an xml file to an array. Then attach the code to the thumbnails i created directly (couldn't figure out how to make them dynamic) so they load the big picture to the center of the stage. i was able to do this but the images loaded to the left corner of the mc all the time. I also need a next and previous button to loop through the images.I saw different approaches to this problem, but got confused on what's the right way to do this
View 1 Replies
Dec 10, 2009
how to do an effect like the one seen on this page?: http:[url]....
View 1 Replies
Dec 25, 2004
I've got these images that are being loaded into an MC called imageClip, and another MC called Canvas underneath it.In canvas, I have the code:
onClipEvent (enterFrame) {
// Make canvas dynamically resize to whatever is loaded in imageClip clip and width and height matches (and only when t�tally loaded )
[code].....
View 1 Replies
May 15, 2009
I am working on creating a website that has 4 large images in the center of the stage and I was trying to load them using XML. I have a pre-loader to detect how much of the flash site was loaded then once it's loaded it continues onto the main content. My problem is that it goes to the main content before the images are actually loaded and I'm not sure how to make sure that the content is loaded before moving on from the preloader.
View 1 Replies
Sep 24, 2009
I have several images that are loaded dynamic.Now I want them to center in the container.How is that done? I can get the width and height but I can't adjust the x values on the loaderinfo object. Heres part of the code:
... part of function ...
for (var i:uint=0; i<numPictures; i++) {
var pictLdr:Loader = new Loader();[code].......
View 8 Replies
Oct 9, 2009
I am editing an XML gallery and I have some questions..I wonder how I can position my images in the center of the screen. The images are all the same size (800x600) and I need them to display in the center of the screen.I played around with the code and I found out that when I change the Width and Height, the images starts to move (finally)... But it's very hard to find the correct position, so how can I just get it to the horizontal en vertical center of the screen/file?
Here's what the code looks like:
Code:
<gallery dir="Photos/">
<img id='0' align="center" file="foodcongres2009_1.jpg" width='1024' height='768'>
Test foto nummer 1
</img>
[code].....
And next... I have just two arrows (left, right), but when I click on the left one (previous), it goes to the next image instead of the previous one.. How about that?
View 8 Replies