/ Published in: ActionScript
how to target the 'root' or 'parent' timelines from within a movieclip. the old actionscript method of using [for example] "_root.gotoAndPlay("intro");" or "_parent.gotoAndStop(3);" no longer works in actionscript3.
Expand |
Embed | Plain Text
// send root timeline to play frame 3 MovieClip(root).gotoAndPlay(3); // send root timeline to stop on frame "intro" MovieClip(root).gotoAndStop("intro"); // send the current timeline's 'parent' to play frame 3 MovieClip(parent).gotoAndPlay(3); // send the current timeline's 'parent' to stop on frame "intro" MovieClip(parent).gotoAndStop("intro"); // when traversing a long list of nested 'parent' timelines, just string // as many together as you need - separated by dots. for example... MovieClip(parent.parent.parent).gotoAndPlay(3); //or... MovieClip(parent.parent.parent).gotoAndStop("intro");
You need to login to post a comment.
