Return to Snippet

Revision: 5414
at March 6, 2008 22:29 by webStruck_


Initial Code
//at frame 1
delay = 5000; //milliseconds
function playMovie() {
gotoAndPlay(_currentframe + 1);
clearInterval(pauseInt);
}

//at the end of the animation or between of your animations
stop();
pauseInt = setInterval(playMovie, delay);

Initial URL
http://www.actionscript.org/forums/showthread.php3?t=16467&page=2

Initial Description
I was looking for a simple time delay in ActionScript, and I found this one to be useful (and working). The logic is plain simple to understand.

ASv1.

Initial Title
Simple Time Delay

Initial Tags
flash, simple

Initial Language
ActionScript