Hi all, If I have an action (like putting up an alert popup, adding a child to the canvas, etc) that needs to be delayed, it would be great to have a good old "sleep" or something prior to the command, but I guess one has to use Timers.
But since Timer calls a new function, how to best pass along any objects or strings that it will need, other than have these as global vars? I tried something like this, but I can't reference the target as shown, and you can't pass anything to the resetAlert from the listener. function myAlert():void{ var test:String="testing"; var alertTimer:Timer = new Timer(3000,1); alertTimer.addEventListener(TimerEvent.TIMER,resetAlert,false,0,true); alertTimer.start(); } function resetAlert(e:TimerEvent) { trace("traced test:"+e.target.test); } I know it is something easy I'm missing, so thanks!