想用循環(huán)語句控制下面的按鈕
想用循環(huán)語句控制下面的按鈕,cbt1,cbt2,cbt3為三個(gè)按鈕,c1,c2,c3為場景中三個(gè)幀標(biāo)簽。
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