Then in the frame where you want to jump at the end of the "go" section:Code:var dynRoot:MovieClip = MovieClip(root); dynRoot.about.addEventListener(MouseEvent.CLICK, _click); function _click(event:MouseEvent):void{ dynRoot.afterGo = "about"; gotoAndPlay("go"); }
The reason we need to set a property on the root object rather than just a variable is that a variable would be local to the frame it's on and would fall out of scope after that frame was over.Code:var dynRoot:MovieClip = MovieClip(root); gotoAndStop(dynRoot.afterGo);




Reply With Quote