flash as3.0 中,为什么我用了一次gotoAndPlay,第二段再加上就提示我错误了?
this.zs_mc.stop();this.zs_btm.addEventListener(MouseEvent.CLICK,onClick)functiononCli...
this.zs_mc.stop(); this.zs_btm.addEventListener(MouseEvent.CLICK,onClick) function onClick(e:MouseEvent):void{ this.zs_mc.gotoAndPlay(1); } this.gc_btm.addEventListener(MouseEvent.CLICK,onClick1) function onClick1(e:MouseEvent):void{ this.gc_mc.gotoAndPlay(1); } 我的想法很简单,就是按一个按钮播放一个东西。为什么我只输第一段的时候可以,输第二段的时候说我“调用可能未定义的方法 gotoAndPlay?名字都没错
代码发上来就乱了,应该是
this.zs_mc.stop();
this.zs_btm.addEventListener(MouseEvent.CLICK,onClick)
function onClick(e:MouseEvent):void{
this.zs_mc.gotoAndPlay(1);
}
this.gc_btm.addEventListener(MouseEvent.CLICK,onClick1)
function onClick1(e:MouseEvent):void{
this.gc_mc.gotoAndPlay(1);
} 展开
代码发上来就乱了,应该是
this.zs_mc.stop();
this.zs_btm.addEventListener(MouseEvent.CLICK,onClick)
function onClick(e:MouseEvent):void{
this.zs_mc.gotoAndPlay(1);
}
this.gc_btm.addEventListener(MouseEvent.CLICK,onClick1)
function onClick1(e:MouseEvent):void{
this.gc_mc.gotoAndPlay(1);
} 展开
展开全部
this.zs_mc.stop();
this.gs_mc.stop();
this.zs_btm.addEventListener(MouseEvent.CLICK,onClick)
function onClick(e:MouseEvent):void{
this.zs_mc.gotoAndPlay(1);
}
this.gs_btm.addEventListener(MouseEvent.CLICK,onClick1)
function onClick1(e:MouseEvent):void{
this.gs_mc.gotoAndPlay(1);
}
this.gs_mc.stop();
this.zs_btm.addEventListener(MouseEvent.CLICK,onClick)
function onClick(e:MouseEvent):void{
this.zs_mc.gotoAndPlay(1);
}
this.gs_btm.addEventListener(MouseEvent.CLICK,onClick1)
function onClick1(e:MouseEvent):void{
this.gs_mc.gotoAndPlay(1);
}
2014-03-28
展开全部
上源文件,给我瞧瞧。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询