Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::MouseEvent@7ff5f84220d1 to fl.motion.MotionEvent.

New Here ,
Feb 21, 2015 Feb 21, 2015

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!!!!

TOPICS
ActionScript
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 21, 2015 Feb 21, 2015

The error clearly indicates what is wrong.  Everywhere in the code that you show where you have MotionEvent you should have MouseEvent instead.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 22, 2015 Feb 22, 2015
LATEST

Thank you, had not noticed it, thank you. Best regards.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines