This is probably a simple fix, but I haven't used timers much. What I need is basically a pause inside of a function. I was hoping the following would work, but sadly it did not.
Actionscript Code:import flash.utils.Timer;
var myDelay:Timer = new Timer(100);
myDelay.start();
for(var i:uint = 0;i<100;i++){
myDelay.start();
trace("Hello");
}
If it isn't clear what I am trying to do here, I just want it to trace "Hello" 100 times with a set amount of time between each trace. Any suggestions? Thanks




Reply With Quote