title: actionscript 3 sleep?
body: <p>I have a simple actionscript function</p>
  
  <pre><code>var string:String = "TEXT REMOVED";
  var myArray:Array = string.split("");
  addEventListener(Event.ENTER_FRAME, frameLooper);
  
  function frameLooper(event:Event):void {
      if(myArray.length &gt; 0) {
          text1.appendText(myArray.shift());
      }else{
          removeEventListener(Event.ENTER_FRAME, frameLooper);
      }
  }
  </code></pre>
  
  <p>And I want to have it sleep after calling the framelooper so it is a little bit slower. How could I do this?</p>
  
  <p>btw, I'm fairly new and found this code on a tutorial, it's a text typing effect, if there is a better way of doing this please let me know.</p>