Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Stop the Timeline
- stop();
- //Create a delay timer for 5 miliseconds that is executed once
- var timer:Timer = new Timer(5,1);
- //Add an event listener that calls once the timer is complete
- timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
- //Start the timer
- timer.start();
- //Timer handler that is called once the delay timer is complete
- function timerHandler(event:TimerEvent){
- //Go to and play the first frame
- gotoAndPlay(0);
- }
Add Comment
Please, Sign In to add comment