Join Login


Video Tutorials
Blog



Premiere Pro CS5

Automatic Image Gallery!


By: RiverCityGraphix      Views: 14274      Share: Bookmark and Share

In this tutorial, you will learn how to create an automatic image gallery using timers in Flash CS4.

Many people have requested that I show how to create an image gallery that will cycle through without buttons. I created this gallery using timers to create an interval that will cycle the images at a designated speed. This is a handy tool when creating slideshow style galleries that will run on their own. This timer technique can also be applied to other projects as well such as clocks, ads, etc. If you want to expand on this tutorial, you could add buttons to control the interval or run the gallery. You could even add a rollover that stops the action to allow for longer viewing.

Actionscript 3 (AS3)
stop();

var nextImage:Timer = new Timer(2000);
nextImage.addEventListener(TimerEvent.TIMER, playNext);
nextImage.start();

function playNext(event:Event):void{
nextFrame();
}


Actionscript 3 (AS3) Last Frame
nextImage.stop();
nextImage.reset();
gotoAndStop(1);




Free Source Files Zip

Create a Social Network!