Discover Master of Alchemy, our first iPad/iPhone and iPod touch game!

Follow Me


Forum's topics

Latest Files


Top Rated


Photo Gallery

Alessandro Crugnola on September 13, 2005 in actionscript

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


Bookmark and Share


Tags: setinterval , settimeout 


Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Type the characters you see in the picture above.



TrackBack URL for this entry: