as3 Timerクラス

使い方テンプレ
[ActionScript]
//—読み込み
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.events.*;

//—変数
private var timeCounter:Timer;

//—実装部分
timeDropCounter = new Timer(70);
timeDropCounter.addEventListener(TimerEvent.TIMER,drop);

//—実行
private function drop(e:TimerEvent):void{

}
[/ActionScript]

コメントを残す

メールアドレスが公開されることはありません。


*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">