PDA

View Full Version : Slideshow FadeIn/Out Continuously


tomyknoker
06-03-2007, 03:36 AM
Hi all,

I have the following file which creates a really simple slideshow... At the moment you currently have to click to fade out and then fade back in to the next image... I just want it to run and play 10 images continuosly fading in and out... Can anyone help me edit my code would be much appreciated!

frank grimes
06-12-2007, 07:48 PM
I don't have Flash in front of me, so I'm going to try winging it.

I use two movieClips that dynamically load JPGs. Set up a timer (setInterval for AS2; not sure what it is in AS3) for the duration you want each image displayed.

After X seconds, a function will run to fade out one image as the other fades in. Use the Tween class for this.

You'll also need to keep track of what images are loaded. For example, if you have 10 total images, when the 10th image is displayed, reset your counter to 1.

Hope that helps!

:grimey