Reputation: 587
simple one here surely..
mybutton.addEventListener(MouseEvent.MOUSE_DOWN, thefunction);
function thefunction(event:MouseEvent):void {
gotoAndPlay(** frame on child movie clip **);
}
How do I target the frame ?
Upvotes: 4
Views: 31901
Reputation: 15955
Call function from the child MovieClip
entering the frame as parameter to gotoAndPlay
For example, given a symbol with instance name childMovieClip
childMovieClip.gotoAndPlay(2);
flash.display.MovieClip gotoAndPlay
Upvotes: 7