This content has been marked as final. Show 3 replies
I've been working in a similar way with AS 3.0, with gotoAndPlay(). Unless I'm not mistaken gotoAndPlay() is not looking for the name of the movieclip or object, but instead wants frame-number input.
In addition, I believe your syntax is slightly off. Instead of this.parent.gotoAndPlay(), I believe it is parent.this.gotoAndPlay(). You call the parent object first, then the "sub-object" located in the parent.
So instead of using the script:
parent.this.gotoAndPlay(frame_number); // where frame_number represents the frame you would like to play first.
Hope this helps,
hello again ritpas,
This forum response may also be useful. It's a response to a similar post I made a few days ago:
I didn't manage to do by using both of your soltion :
- inverting this and parent doesn't work and using a frame number doesn't use either.
At last, I centralized my code on the uppest level, so that gotoAndPlay is launched directly in the timeline contaning the concerned frame.