var timer:Timer = new Timer(1000, 25); // 1000 = 1 dk
timer.addEventListener(TimerEvent.TIMER, timerF); function timerF(e:TimerEvent):void { trace("Tekrar: " + e.currentTarget.currentCount); trace("Zaman: " + e.currentTarget.delay); myScreen.htmlText = "<b>Tekrar: </b>" + e.currentTarget.currentCount; myScreen.htmlText += "<b>Zaman: </b>" + e.currentTarget.delay; } timer.start(); //timer.stop(); |
||