StupidBeauty
Read times:940Posted at:Sun Dec 9 22:56:09 2012
- no title specified

转载AS3中使用定时器的方法

Action Script 3中的定时器叫Timer。

http://blog.sina.com.cn/s/blog_476f4de40100aqh8.html

亮点

var mytimer:Timer = new Timer(1000); //新建一个Timer对象,参数是定时间隔,单位是毫秒。
mytimer.addEventListener(TimerEvent.TIMER, run); //为此事件添加侦听
mytimer.start(); //启动定时
function run(event:TimerEvent):void {
//这里是需要定时处理的语句
}

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands