Log in

View Full Version : MovieClip gotoAndStop



Amarite1
04-14-2012, 11:05 PM
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
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).

BLiZZaRD
10-12-2012, 11:03 PM
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:



this._parent.GotoAndStop("frameLabel");
this._root.... etc