Flex - Why is my custom event not being registered with the following event listener?

Posted by flexfanatic on Stack Overflow See other posts from Stack Overflow or by flexfanatic
Published on 2010-04-20T14:01:30Z Indexed on 2010/04/20 14:03 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

printableInvoice.addEventListener(batchGenerated, printableInvoice_batchGeneratedHandler);

Results in this error: 1120: Access of undefined property batchGenerated. I have tried it as FlexEvent.batchGenerated and FlashEvent.batchGenerated.

The MetaData and function that dispatches the even in the component printableInvoice is all right. It I instantiate printableInvoice as an mxml component instead of via action-script it well let put a tag into the mxml line: batchGenerated="someFunction()"

Thanks.

© Stack Overflow or respective owner

Related posts about flex

Related posts about custom