Copy link to clipboard
Copied
Using Action Script 3
gave me this error!
Help me!!!
import fl.motion.MotionEvent;
stop ();
function doutzen_clicked (e:MotionEvent) :void {
gotoAndStop(1);
}
function doutzen2_clicked (e:MotionEvent) :void {
gotoAndStop(2);
}
function doutzen3_clicked (e:MotionEvent) :void {
gotoAndStop(3);
}
function doutzen4_clicked (e:MotionEvent) :void {
gotoAndStop(4);
}
doutzen.addEventListener(MouseEvent.CLICK,doutzen_clicked) ;
doutzen2.addEventListener(MouseEvent.CLICK,doutzen2_clicked) ;
doutzen3.addEventListener(MouseEvent.CLICK,doutzen3_clicked) ;
doutzen4.addEventListener(MouseEvent.CLICK,doutzen4_clicked) ;
Help me!!!!
Copy link to clipboard
Copied
The error clearly indicates what is wrong. Everywhere in the code that you show where you have MotionEvent you should have MouseEvent instead.
Copy link to clipboard
Copied
Thank you, had not noticed it, thank you. Best regards.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now