/ Published in: ActionScript

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.
ASv1.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//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);
URL: http://www.actionscript.org/forums/showthread.php3?t=16467&page=2
Comments
