title: How to wait for 3 seconds in ActionScript 2 or 3?
body: <p>Is there any way to implement waiting for, say, 3 seconds in ActionScript, but to stay within same function? I have looked setInterval, setTimeOut and similar functions, but what I really need is this:</p>
  
  <pre><code>public function foo(param1, param2, param3) {
    //do something here
    //wait for 3 seconds
    //3 seconds have passed, now do something more
  }
  </code></pre>
  
  <p>In case you wonder why I need this - it is a legal requirement, and no, I can't change it.</p>