title: as3 Redraw stage in the middle of a loop
body: <p>I have a coloring book app built in Flash Pro CS6. I add the shapes to be colored to an object called "coloringBook" with the following code:</p>
  
  <pre><code>for (var i = 0; i &lt;= colorable.totalFrames; i ++) {
      shape = new (getDefinitionByName(pattern) as Class)();
      shape.gotoAndStop(i + 1);
      coloringBook.addChild(shape);
      shape.x = Math.abs(gWidth - dWidth)/2;
      shape.y = Math.abs(gHeight - dHeight)/2;
      if (i &lt; colorable.totalFrames) {shape.addEventListener(MouseEvent.CLICK, colorColorable);}
  }
  </code></pre>
  
  <p>While the code works extremely well, I was hoping to add some polish to the app by showing the user each shape being added to the stage. I can add pauses (e.g. sleep timers) to the code but the app just goes blank until all the timers have completed and shows the finished compilation of shapes. Any guidance on coding would be greatly appreciated.</p>