# removeEventListener without knowing the function?

**URL:** <https://forum.kirupa.com/t/removeeventlistener-without-knowing-the-function/291138>\
**Category:** flash\
**Created:** [June 25, 2009, 4:47am UTC](https://forum.kirupa.com/t/removeeventlistener-without-knowing-the-function/291138 "2009-06-25T04:47:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjhaydon](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cjhaydon](https://forum.kirupa.com/u/cjhaydon)\
**Post date:** [June 25, 2009, 4:47am UTC](https://forum.kirupa.com/t/removeeventlistener-without-knowing-the-function/291138/1 "2009-06-25T04:47:46Z")

</div>

Hi All,  
One can easily remove a listener like so:  
circle.removeEventListener(MouseEvent.CLICK, maskSquare);

BUT, is it possible to remove a listener (or preferable ALL listeners) from an object WITHOUT knowing the function that the event is tied to?

e.g  
circle.removeEventListeners(); ??

Cheers  
-C
