I am trying to make sprite sheets for rotation of DisplayObjects, and it seems that the gotoAndStop() calls are not working.
Here's an example of what's going on:
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
}
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.
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?