PDA

View Full Version : How to show slide on a continous loop


william777
01-18-2007, 10:06 AM
I am quite new here and I hope I am posting this in the correct category.

I need help in designing a Flash web.
At the moment, I have created a photo gallery page with twenty buttons with a photo on each button. The button measures 30mm x 30mm. When I press any of the buttons, the photo on the button would be enlarged to 100mm x 100mm. I have put all twenty photos or images in the Flash Library, the names are image1.jpg to image20.jpg. I am using Flash MX Pro 2004.

I would like to create a "Play" button which would loop through the 20 images. How do I do that?

Thanks in advance for your help.:)

lelales
01-20-2007, 06:53 PM
You can write a functiuon that tweens all the photgraphs.

http://laco.wz.cz/tween/

I know there is a callback function allowed in the tweening formula. You would have to use a loop as well. Sorry I can't write it all for you, but this should get you thinking

lelales
01-20-2007, 07:21 PM
Well, if it is a static animation, you could just put a _root.gotoAndPlay(1);
But, without seeing your code, or how you have the movie setup, it's hard to say

william777
01-23-2007, 01:46 AM
Thanks for your interest and reply.
Yes, it is a static animation. I will try as you suggested. Thanks.

bgore
01-25-2007, 12:54 AM
I did a slide show a little differently, made a main swf movie and then an intro swf. Then loaded the intro in to the main swf. Go take a look. I can change all the images in the intro (which by the way are swf files themselves).

I use the tween on all the swf files loading and unloading in the movie.

bgore
01-25-2007, 12:55 AM
forgot the link.

www.lehigh-pocono.com

william777
01-25-2007, 01:46 AM
Thanks bgore.... that was great!
I will try different approaches .... see how it goes.

bgore
01-26-2007, 03:33 AM
Hey there,

Glad to get a reply. I took the time to play and learn some of the flash, It is a little easier then you think. For this site (my test site) here is what I did.

Main movie contains 5 layers.

L1=Actions
L2=Logo (graphic tween) Bgore
L3=Logo1(graphic tween) Photography
L4=(Slideshow) named intro.swf
L5=Music (which is a seperate .swf file named music!)

Most of this should be pretty easy.

For the slide show create a new doc (call it what you want)

layers (as many as you want!) keep the first one for the actions
now each layer has is it own graphic. Create the tween you desire, remember if you are off a pixel here or there you will see a flicker( as mine does and will be fixed!!)

In layer 2 (first pic) start the tween around frame 20
**Hint** If you are using music to set mood, run the show at the tween rate which will match the emotion

you can do as many as you want (layers and pic's)

Once you have it the way you want save/publish etc... keep the .swf file in the same directory as the main movie.

Now go to the main movie in the layer named (Slide) go to the frame you want the show to appear. Create a MC call it whatever you like.

*****Note*****

Make sure you have the slide show appear AFTER the music starts (some tweaking will be needed)

in the frame for the slide show write the script to load the movie.

Ex. this._root.mc_slide.loadMovie("slide.swf");

for the music layer.

Mine is music but not the way you think, the music is a seperate .swf file. do the same here and write the script

loadMovie("music.swf",200);

Now test the main movie see what happens.

in the loadMovie (music) the 200 is the layer. I set the 200 areea for music etc..

You can n ow use the Mc_slide clip holder for loading all movies,

use the unloadmovie script to another level then load the next movie.

If you need more help let me know or PM me.

Brian

By the end of the weekend, i will have mine changed around more geared to the brides emotions, hey I am a photographer who shots weddings for a living. the slides will be more uniformed etc...I was playing again today and tried something go take a look. You can also do as many shows as you like, at the end of the last show use the gotoandplay comand. runs rthe movie again. If you use multiple movies, remember that if you don't use a stop action the first movie will loop forever!

B

william777
02-02-2007, 04:53 AM
Bgore, just to say a BIG THANK YOU for all you assistance and time spent.