I have a very short Flash project that's 4 frames total. If nothing is clicked, I want it to advance to the next frame after 3 seconds. I could just do it on the timeline, but I would prefer to use ActionScript for this function if at all possible.In Flash ActionScript 3.0, how do I advance to the next frame every 3 seconds?
stop();
var myTimer : Timer = new Timer (3000,3);
myTimer. addEventListener (';timer';, timerHandler);
myTimer. start();
function timerHandler (event:TimerEvent): void {
this. nextFrame();
}
Anil
anilkumarnd@gmail.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment