CS6 1046:未找到类型或不是编译时常量:void

时间:2013-06-27 22:38:43

标签: actionscript-3 flash flash-cs6

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中有一个网页并且它一直闪烁在循环中

1 个答案:

答案 0 :(得分:2)

您在所有函数定义的末尾拼写错误void

function button1_clicked(e:MouseEvent):viod
// -------------------------------------^^