title: As3 gotoAndStop multiple calls in one enter frame
body: <p>I am trying to make sprite sheets for rotation of DisplayObjects, and it seems that the gotoAndStop() calls are not working.</p>
  
  <p>Here's an example of what's going on:</p>
  
  <pre><code>function createRotationalSpriteSheet ( displayObject : DisplayObject )
  {
      findMaxTileDimensions( displayObject );
      MovieClip( displayObject ).gotoAndStop( 1 ); // this call does not work.
  }
  
  function findMaxTileDimensions ( displayObject : DisplayObject )
  {
      MovieClip( displayObject ).gotoAndStop( 1 ); // this call works fine
  }
  </code></pre>
  
  <p>For the gotoAndStop call that doesn't work, the label and frame number are updated but when I try to draw the DisplayObject with BitmapData.draw, the frame is still stuck on the last frame it was told to go to in the findMaxTileDimensions function.</p>
  
  <p>Is this happening because I am calling the gotoAndStop function to many times in one enter frame? Is it happening because I'm calling gotoAndStop from two different functions in the same enter frame?</p>