A timer that has just five intervals:
package{
import flash.display.Sprite;
import flash.utils.*;
import flash.events.*;
public class Main extends Sprite{
public function Main(){
var timer:Timer = new Timer(1000, 5);
}
}
}
Related examples in the same category