ActionScript 3.0 Timer Event


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var timer:Timer = new Timer(5000);
  2. timer.addEventListener(TimerEvent.TIMER, onTimer);
  3. timer.start();
  4.  
  5. function onTimer(evt:TimerEvent):void {
  6. gotoAndPlay("next_frame");
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.