Creating Slide Show in Flash
To create an automated slide show, you will need two movie clips: one as a container for all images and one to control transition (although it is possible to achieve the same effect with only one movie clip).
Place individual images into separate frames of the movie clip and test elapsed time to decide when a new image is to be displayed.
How it works
Main part of the ActionScript which controls the transition:onClipEvent(enterFrame){
timeNow = getTimer();
//change image every 2000 ms:
if (timeNow - timeStart >= 2000){
timeStart = getTimer();
//test if the counter reached
//the last image:
if (n==5){
n=1;
} else {
n++;
}
//display another image:
_parent.gallery.gotoAndStop(n);
}
}
