-
MovieClip gotoAndStop
Hi All,
I am looking for a way that I can change the current frame of the Main Timeline from inside a Movieclip. I have tried various methods such as
Code:
parent.gotoAndStop(2, "Menus");
stage.gotoAndStop(2, "Menus");
this.parent.gotoAndStop(2, "Menus");
but with no success. Is there a way for me to do this?
Note: The purpose of the buttons is to exit the current game (go to the menu).
-
Labels are your friend. Which version of Flash and which AS version are you using? It will make a difference.
You must ensure you give all your MCs an instance name, this is usually the first issue. When controlling parent details you need to use the full paths the little target icon on the actions pane will help with this.
For example:
HTML Code:
this._parent.GotoAndStop("frameLabel");
this._root.... etc