Toki
Toki

Reputation: 587

as3 gotoandplay frame on child movie clip

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

Answers (1)

Jason Sturges
Jason Sturges

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);

child MovieClip instance

flash.display.MovieClip gotoAndPlay

Upvotes: 7

Related Questions