MovieClip Timeline Control
function goHome(e:MouseEvent):void {
this.gotoAndStop("one");
}
But it doesn't work. Turns out that you can't do this in AS3 because root, this, and parent refers to display objects that don't have multiple frames. You need to encase the script with the MovieClip object as follows:
function goHome(e:MouseEvent):void {
MovieClip(root).gotoAndStop("one");
}
Strange, but true.
Labels: ActionScript 3.0, Flash CS4, MovieClip, Timeline