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