StupidBeauty
Read times:921Posted 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

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4