Typeerror: Error #1034: Solution to the forced conversion type failure problem

Source: Internet
Author: User

Implement an application in a recent project

Flex applicationsProgramLoad SWF Program

Theoretically, there should be no problem.

However, when I use some built-in flash components and call the flex Box program

  1. Typeerror: Error #1034: forced conversion type failed: Unable to convert Fl. Events: componentevent @ 5fe83d1 to MX. Events. flexevent.

Clearly stated, type conversion failed.

The reason should be that after the flash component internal event is sent, the flex external program accepts the event, but obviously, the FL package event does not exist in flex.

 

If you want to find a solution on the Internet, you can find only one Spanish file, which means you have accepted the event and do not pass it.

Is it true that this application rarely appears? None of them see similar problems.

 

Try to use

  1. This. Addeventlistener (componentevent. Show, eventresponse );

No effect found

 

After checking the document for a long time, it seems that you have a certain understanding of the event mechanism, are you sure you want to accept the event or continue the transfer?

 

Finally, find the stoppropagation method in the Help file.

It prevents all event listeners in subsequent nodes of the current node in the event stream from being processed.

 

Added the event processing function to solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.