title: Delays in ActionScript (Flash)? Alternatives to setInterval
body: <p>While <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/utils/package.html#setInterval()" rel="nofollow noreferrer">setInterval</a> 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 <strong>without making methods for A and B?</strong></p>
  
  <pre><code>// do A
  // wait N seconds
  // do B
  </code></pre>
  
  <p>I don't want to use a <code>while</code> loop with Dates because I think it will be blocking. Isn't there anything like <code>Thread.sleep</code> in ActionScript?</p>