儿童电影剪辑上的as3 gotoandplay框架

时间:2012-05-17 03:39:48

标签: actionscript-3 flash

肯定是这里简单的......

mybutton.addEventListener(MouseEvent.MOUSE_DOWN, thefunction);

function thefunction(event:MouseEvent):void {
    gotoAndPlay(** frame on child movie clip **);
}

如何定位框架?

1 个答案:

答案 0 :(得分:7)

从进入框架的子MovieClip调用函数作为参数gotoAndPlay

例如,给定实例名称为childMovieClip

的符号
childMovieClip.gotoAndPlay(2);

child MovieClip instance

flash.display.MovieClip gotoAndPlay