Hi mate, sorry for the long delay, never saw your answer!
So I put the unload hook in and ADDED_TO_STAGE listener then and works great!
But I have some related question to this, does the SwfLoader provide some kind of load event, like the unload one?
I see everywhere that if I put an ADDED_TO_STAGE listener, is recommended to remove it the first time is call, to avoid weak references.
But if I need to load and unload the same child swf multiple times, and do some kind of re-initialization and cleanup, is not clear to me how to do that, for example starting and stoping and animation in each cycle. I have the "unload" hook for doing the cleanup, but not sure how to do re-the initialization if the ADDED_TO_STAGE listener is removed.
An example will be something like this
1-Child SWF Load
2-ADDED_TO_STAGE call, where an animation is created, the unload hook set, and this ADDED_TO_STAGE listener removed.
3-Child SWF is unload, the unload hook gets called and stop the animation.
4-Child swf load again, but no ADDED_TO_STAGE listener to start the animation again!
Is there any "load" hook, like the "unload" one?
Hope the question is understood, thanks in advance!