for some reason in one instance i can't get goToAndStop(2) to go to and stop on the second frame of a movie clip, that has two frames, and it's loaded!
I'm adding the movieclip to the stage on the constructor function of a class. and then on the click of the button1 i am changing the frame to frame 2. and then back to frame 1 on the click of button2..
None of them work.....
But.. if set the movieclip to goto frame 2 on the constructor function then it starts up on frame 2, when i click the button1 it stays on frame 2 (as im telling it to goto frame 2) and then clicking on the button2 successfully changes it to the first frame. and then i can click on button1 again and it changes it to the second frame fine.
Remove the _movie.gotoAndStop(2) from the constructor function and none of it works again.
public function changeBackground($frame:int):void
{
trace('gotoFrame', $frame);
_movie.gotoAndStop($frame);
trace('currentFrame',_movie.currentFrame);
}
button1 click output
gotoFrame 2
currentFrame 2
button2 click output
gotoFrame 1
currentFrame 1
So it says it is on the correct frame, but is displaying otherwise!
there is definatly only one instance of this class on the stage