Check for specific event listener function?

Hi everyone,

i’m trying to check if a movieclip has an event listener with a sepecific function bound to it. The hasEventListener function only accepts one parameter (the listener). What i would need would be an hasEventListener that accepts a second parameter, namely the function that is bound to it.

That’s how it looks right now:


if (!mc.hasEventListener(MouseEvent.ROLL_OVER) {
	mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
}

but what i would need is:


if (!mc.hasEventListener(MouseEvent.ROLL_OVER, overHandler) {
	mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
}

because i bind more than one ROLL_OVER listeners to that mc.

Thank you in advance!
Felix