as3 gotoandplay frame on child movie clip

actionscript-3, flash

Solution

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

Problem

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 ?

Original source