How can I raise an event from a SWF file loaded into a Flex application (using SWFLoader)?
I want to be able to detect
a) when a button is pressed
b) when the animation ends
apache-flexevent handlingeventsswfloader
How can I raise an event from a SWF file loaded into a Flex application (using SWFLoader)?
I want to be able to detect
a) when a button is pressed
b) when the animation ends
Best Answer
You'll need to do 2 things:
Listen to the event from your main application. I think you should be able to do that on the content property of the SWFLoader instance.