Ok - i did a bit of research....
you can do the following - trap for the notification FlexEvent.Remove
which occurs when a child is removed
from a container. Other than that im not sure what else to do..
Basically trap this function... my own code already did something
similar but this appears more accurate as the last
posted message......
Hope that helps some of you (by the way, the notification is raised by
the Container
object under internal::removingChild function)
Regards,
Samuel
On Sep 23, 2008, at 5:52 PM, ozziegt wrote:
--- In [email protected], Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
>
> I normally use creationComplete for setting up the listeners.
I have been using creationComplete, but there is no way for me to
remove the listeners when the object is removed from the stage, which
leads to memory leaks.