Finally setTimeout!

Finally after long days crying on the setInterval flash function they’ve introduced setTimeout!!!
Which is a one-shot interval call!

function testMe() {
trace("callback: "+getTimer()+" ms.");
}
var intervalID:Number = setTimeout(testMe, 1000);
// clearTimeout(intervalID) // for clear the timeout

p.s. I’ve just uploaded some new tutorials on flash8

Share with...