# Eventlistener issue

**URL:** <https://forum.kirupa.com/t/eventlistener-issue/299407>\
**Category:** Uncategorized\
**Created:** [November 4, 2009, 5:26pm UTC](https://forum.kirupa.com/t/eventlistener-issue/299407 "2009-11-04T17:26:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grass](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@grass](https://forum.kirupa.com/u/grass)\
**Post date:** [November 4, 2009, 5:26pm UTC](https://forum.kirupa.com/t/eventlistener-issue/299407/1 "2009-11-04T17:26:12Z")

</div>

Hi… any chance there’s a possibility to do this:

if i use süntax like:  
ActionScript Code:  
[LEFT]smthng.[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR]privateEvents.[COLOR=#000080]underNeedToKnowBasesEvent[/COLOR], [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#808080]_// do something silly here_[/COLOR]  
[COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];

[COLOR=#808080]\*//i know if i create a function like that there’s a special cool word for this event =) \*[/COLOR]

[/LEFT]

any chance I can use removeEventListener on that?  
like:  
ActionScript Code:  
[LEFT]smthng.[COLOR=#000080]removeEventListener[/COLOR][COLOR=#000000]([/COLOR]privateEvents.[COLOR=#000080]underNeedToKnowBasesEvent[/COLOR], ???[COLOR=#000000])[/COLOR];  
[/LEFT]

like it so ain’t cool to write a ■■■■ new function for every minor listener i use…  
PLS!!! - DON’T TELL ME I CAN DO THE THING IN THE LINE ABOVE!!!
