Posted By

arpo on 12/01/08


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

akashaman
loric
davidino1978
tspitzr


Timer


 / Published in: ActionScript 3
 

Timer in as3. To make an interval skip the second parameter in myTimer = new Timer(300,1);

  1. import flash.utils.Timer;
  2.  
  3. var myTimer:Timer
  4. myTimer = new Timer(300,1);
  5. myTimer.addEventListener("timer", function(){
  6. trace("My timer action");
  7. });
  8. myTimer.start();
  9. //myTimer.reset(); //Start the timer all over again.

Report this snippet  

You need to login to post a comment.