Delays in ActionScript (Flash)? Alternatives to setInterval
Posted
by yar
on Stack Overflow
See other posts from Stack Overflow
or by yar
Published on 2010-04-23T14:05:54Z
Indexed on
2010/04/23
15:43 UTC
Read the original article
Hit count: 152
actionscript-3
While setInterval is handy, it's kind of limiting. Every time I want to add a Tween I have to add a new method. I do not want to alter the structure of my code just to add in some delays. Isn't there any way to say this without making methods for A and B?
// do A
// wait N seconds
// do B
I don't want to use a while
loop with Dates because I think it will be blocking. Isn't there anything like Thread.sleep
in ActionScript?
© Stack Overflow or respective owner