“重放”按钮动作脚本
旧版ActionScript 2.0:
on(press){gotoAndPlay("home")};
新版ActionScript 3.0:
replay_btn.addEventListener(MouseEvent.CLICK, replay);
function replay(event:MouseEvent):void {
gotoAndPlay("home");
}
(╯°口°)╯(┴—┴ 一个按钮就多这么多字
五六个是要闹那样
旧版ActionScript 2.0:
on(press){gotoAndPlay("home")};
新版ActionScript 3.0:
replay_btn.addEventListener(MouseEvent.CLICK, replay);
function replay(event:MouseEvent):void {
gotoAndPlay("home");
}
(╯°口°)╯(┴—┴ 一个按钮就多这么多字
五六个是要闹那样