Class to track any object that’s registered to listen to an event and is created by a movieclip. Once registered it will automatically tidy up, or garbage collect, when that movieclip is unloaded. Legitamate events include,
- Any Observer/Event Listener that is registered to recieve events from outside the movie clip scope. Ie this.a:Observer registers with _parent.b:Observable
- Interval (timer)
- Key
- Mouse
- Selection (txt field and movie input focus)
- Stage
- TextField
Vunerable to be having it’s onUnload method overwritten. Any ideas on countering this?
Extensions should be, added to include the optional registering of an unload function, or functions to be executed along with this one.
will need to provide and Housekeeping interface for classes to implement when adding and removing and “memory hog” linked objects..