I know that if you register to the ENTER_FRAME or any of the keyboards events you have to unregister before your DisplayObject can be collected by the GC but how about other events???
Do I need to remove these listeners too? If yes, it seems like a lot of extra work… Anybody know the answer? thank you
public class IconObject extends Sprite {
public function IconObject() {
loader = new Loader();
loader.contentLoaderInfo.addEventListener( IOErrorEvent.IO_ERROR, onLoadError );
loader.contentLoaderInfo.addEventListener( Event.INIT, onLoadInit );
addEventListener( MouseEvent.MOUSE_OVER, onRollOver );
addEventListener( MouseEvent.MOUSE_OUT, onRollOut );
}