how to get id of function passed into addEventListener
I need to get some identifier for the function being passing to addEventListener to try to find where a bogus second handler is getting added to a library I am using.
using this in a wrapper function around EventDispatcher.addEventListener
override function addEventListener (type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false) : void;
if ( "mouseDown" == type)
trace( addEventListener type: " + type + " listener: " + listener )
I see in my logs
addEventListener type: mouseDown listener: function Function() {}
which is not much good.
In the debugger I see an id associated with the function, how can I get that id? or some unique identifier.
Like this
EventCollector.addEventListener: mouseDown func: 23449322
or ideally
EventCollector.addEventListener: mouseDown func: className.functionName.instanceId
bob
