I've used this function (and it's mate) to track event listening, when
trying to manage memory leaks. Good for big projects with multiple
developers.

override public function addEventListener(type:String,
listener:Function, useCapture:Boolean=false, priority:int=0,
useWeakReference:Boolean=false):void
{
        super.addEventListener(type, listener, useCapture, priority, 
useWeakReference);
        
}
                        
override public function removeEventListener(type:String,
listener:Function, useCapture:Boolean=false):void
{
        super.removeEventListener(type, listener, useCapture);
}


Just add trace(), Alert.show(), or Logger.debug() (XPanel) call inside
to see who is listening to your component.

-- 
Darin Kohles
RIA Developer


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to