想用循环语句控制下面的按钮
想用循环语句控制下面的按钮,cbt1,cbt2,cbt3为三个按钮,c1,c2,c3为场景中三个帧标签。
cbt1.addEventListener(MouseEvent.CLICK, fc1);
function fc1(event:MouseEvent):void
{
gotoAndPlay("c1");
}
cbt2.addEventListener(MouseEvent.CLICK, fc2);
function fc2(event:MouseEvent):void
{
gotoAndPlay("c2");
}
cbt3.addEventListener(MouseEvent.CLICK, fc3);
function fc3(event:MouseEvent):void
{
gotoAndPlay("c3");
}
115405****** 2016-06-11 00:03:42 积分悬赏:5