# Check for specific event listener function?

**URL:** <https://forum.kirupa.com/t/check-for-specific-event-listener-function/317182>\
**Category:** flash\
**Created:** [December 13, 2010, 10:58am UTC](https://forum.kirupa.com/t/check-for-specific-event-listener-function/317182 "2010-12-13T10:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lixus](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lixus](https://forum.kirupa.com/u/lixus)\
**Post date:** [December 13, 2010, 10:58am UTC](https://forum.kirupa.com/t/check-for-specific-event-listener-function/317182/1 "2010-12-13T10:58:07Z")

</div>

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:

```auto

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

```

but what i would need is:

```auto

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
