Possible duplicate:
flash AS3 how to remove scene event listeners
Say that I have an event listener attached to the component, and I want to remove the event listener from the component so that it can collect garbage. The problem is that I don’t know what kind of object it is or what event listeners it has.
Basically, how can I find out which event listeners have an object and how to delete one or all of them?
source
share