看板 Flash 關於我們 聯絡資訊
用法大致就是這樣 var timer:Timer = new Timer(1000); //1000ms發出一次Timer事件 timer.addEventListener(TimerEvent.Timer, tick); timer.start(); function timer(e:Event):void { //your code here } 比setInterval()好用太多 -- CJ Cat = Croa'J Cat = Cockroach Cat = 西街凱特 = 蜚蠊貓 = 蟑螂貓 Blog http://cjcat.blogspot.com Gallery http://cjcat2266.deviantart.com ptt2 Board CJWorkshop - 阿多比閃光(Adobe Flash)研討區 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.33.163
nwish:筆記 原來有這種用法 06/13 15:17
openyayak:function timer 應該是 function tick 11/27 11:58