var timer:Timer = new Timer(1000 ,1); // 1000ミリ秒 = 1秒 timer.addEventListener(TimerEvent.TIMER, timerFunc); timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerCompFunc); timer.start(); function timerFunc(Event){ trace("予定する繰り返し回数:"+timer.repeatCount); trace("現在の繰り返し回数 :"+timer.currentCount); } function timerCompFunc(Event){ trace("タイマーが完了"); } 1回だけ動かす場合(Sleepとして使う場合も)、TIMER、TIMER_COMPLETE のどちらを
![ActionScript3.0 タイマー処理 - 雨と風と快晴と 2.0](https://cdn-ak-scissors.b.st-hatena.com/image/square/df3a50c14b465108d37d0f484920317dd74971fb/height=288;version=1;width=512/http%3A%2F%2Fu.xgoo.jp%2Fimg%2Fsns%2Fblog.png)