Untraceable error in script code
Hi,
When I do a syntax check, everything yields ok. But, when I try to publish, I get the following error:
>1046: Type was not found or was not a compile-time constant: MotionEvent.<
Here's the code in question:
function clickHD_Btn(e:MotionEvent) {
Any ideas?
Ron
P.S. Here's the entire code:
function setupEvents() {
// associate events with event handlers
HD_Btn.addEventListener(MouseEvent.CLICK, clickHD_Btn);
Machining_Btn.addEventListener(MouseEvent.CLICK, clickMachining_Btn);
}
function clickHD_Btn(e:MotionEvent) {
if(stage.displayState=="fullScreen") {
stage.displayState="normal";
} else {
stage.displayState="fullScreen";
}
}
function clickMachining_BtnButton(e:MouseEvent) {
gotoAndPlay(1,"Usinage");
}
setupEvents();