Is possible to remove all event listeners by doing something like the
following?

mc.removeEventListener(*,*,false);

Though not sure how you would get the count of eventlisteners or
iterate through them?

And as far as deleteing any reference to an object can you override
removechildren and add
 for(var i:int=0; i<this.numChildren-1; i++) 
                        { var chld:DisplayObject = this.getChildAt(i);     
                          chld.deleteReferenceOnParentDocument(this.parent);
                        }

Or is there a best practice when for when you write code like this:
addEventListener(ChildEvent.CHILD_ADDED,
                                handleAdd);

To override the removeChilden function to remove the event listener above?

Thanks in advance.

--JDog

Reply via email to