flash 按钮函数定义重复
button_2.addEventListener(MouseEvent.CLICK,fl_ClickToGoToScene_2);functionfl_ClickToG...
button_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_2);
function fl_ClickToGoToScene_2(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "1");
}
button_4.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_4);
function fl_ClickToGoToScene_4(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "2");
}
button_6.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_6);
function fl_ClickToGoToScene_6(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "3");
}
函数定义重复。
哪里出问题,求解!谢谢!
我是小白,可以具体一点,AS3.0的,谢谢! 展开
function fl_ClickToGoToScene_2(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "1");
}
button_4.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_4);
function fl_ClickToGoToScene_4(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "2");
}
button_6.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_6);
function fl_ClickToGoToScene_6(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "3");
}
函数定义重复。
哪里出问题,求解!谢谢!
我是小白,可以具体一点,AS3.0的,谢谢! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询