It seem's that attache doesn't available. Post code or try to reattache it.
now It's ok.
The problem is in different names for your event.
In TestComp.mxml you've set "myEvent" for dispatching event. But name is "testEvent". So it ok if you write
addEventListener(TestEvent.TEST_EVENT,react);the same will be if you writeaddEventListener("testEvent",react);In mxml<ns1:TestComp x="10" y="10" myEvent="react(event)"></ns1:TestComp>is equvalentaddEventListener("myEvent",react);There are no events with this type, so never works.Names should be identical!
Thanks for your quick reply, but I don't think your answer solves my problem. myEvent is not the EventName, which is only an indicated metadata. You can try to modify the code and cannot compile.
It's not only a metadata.
<ns1:TestComp x="10" y="10" testEvent="react(event)">
And try - it works fine.
Truthfully thank you.
I thought it only the indicator that told compiler to give code hints.