AS3: Basic Timer example - ActionScript 3 - Snipplr
january 2010 by jonobot_
#
var timer:Timer = new Timer(1000, 2);
#
timer.addEventListener(TimerEvent.TIMER, blah);
#
timer.start();
#
#
function blah(e:TimerEvent):void{
#
trace("Times Fired: " + e.currentTarget.currentCount);
#
trace("Time Delayed: " + e.currentTarget.delay);
#
}
as3
flash
timer
actionscript
webdev
howto
var timer:Timer = new Timer(1000, 2);
#
timer.addEventListener(TimerEvent.TIMER, blah);
#
timer.start();
#
#
function blah(e:TimerEvent):void{
#
trace("Times Fired: " + e.currentTarget.currentCount);
#
trace("Time Delayed: " + e.currentTarget.delay);
#
}
january 2010 by jonobot_
Peter deHaan: Using the Timer class in ActionScript 3.0
may 2008 by jonobot_
var myTimer:Timer = new Timer(1000, 1); // 1 second myTimer.addEventListener(TimerEvent.TIMER, runOnce); myTimer.start(); function runOnce(event:TimerEvent):void { trace("runOnce() called @ " + getTimer() + " ms"); }
actionscript
flash
as3
programming
timer
development
may 2008 by jonobot_
Flash source code » Actionscript 3, Full screen sites using “stageListener”
march 2008 by jonobot_
stage.align = StageAlign.TOP_LEFT; //do not let any of the stage scale stage.scaleMode = StageScaleMode.NO_SCALE;
actionscript
as3
fullscreen
resize
march 2008 by jonobot_
related tags
actionscript ⊕ adobe ⊕ alternate ⊕ as3 ⊖ class ⊕ code ⊕ component ⊕ components ⊕ content ⊕ cs3 ⊕ cursor ⊕ custom ⊕ design ⊕ development ⊕ flash ⊕ fullscreen ⊕ gallery ⊕ geturl ⊕ howto ⊕ loader ⊕ loop ⊕ menu ⊕ mouse ⊕ music ⊕ pointer ⊕ programming ⊕ resize ⊕ resources ⊕ savdev ⊕ swf ⊕ timer ⊕ tutorial ⊕ tutorials ⊕ tween ⊕ webdesign ⊕ webdev ⊕ xml ⊕Copy this bookmark: