import flash.events.MouseEvent;
stop();
button1.addEventListener(MouseEvent.CLICK, gobutton1);
function button1_clicked(e:MouseEvent):viod{
gotoAndStop("page1");
}
button2.addEventListener(MouseEvent.CLICK, gobutton2);
function button2_clicked(e:MouseEvent):viod{
gotoAndStop("page2");
}
button3.addEventListener(MouseEvent.CLICK, gobutton3);
function button3_clicked(e:MouseEvent):viod{
gotoAndStop("page3");
}
button4.addEventListener(MouseEvent.CLICK, gobutton4);
function button4_clicked(e:MouseEvent):viod{
gotoAndStop("page4");
}
我在第7,12,17和第22行得到1046错误我在flash中有一个网页并且它一直闪烁在循环中
答案 0 :(得分:2)
您在所有函数定义的末尾拼写错误void
。
function button1_clicked(e:MouseEvent):viod
// -------------------------------------^^