title: Using while loop to wait?
body: <pre><code>var lastRecordedTime:Number = getTimer();
  while(getTimer()&gt;lastRecordedTime+10000)
  {
  
  }
  </code></pre>
  
  <p>I want to put my game on a wait state. Should I use while loop like this or is there a more performance efficient way of doing this?</p>