# can I do this: evt.target.removeEventListener(etc...

**URL:** <https://forum.kirupa.com/t/can-i-do-this-evt-target-removeeventlistener-etc/290117>\
**Category:** Uncategorized\
**Created:** [June 10, 2009, 12:31am UTC](https://forum.kirupa.com/t/can-i-do-this-evt-target-removeeventlistener-etc/290117 "2009-06-10T00:31:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaedo](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Shaedo](https://forum.kirupa.com/u/Shaedo)\
**Post date:** [June 10, 2009, 12:31am UTC](https://forum.kirupa.com/t/can-i-do-this-evt-target-removeeventlistener-etc/290117/1 "2009-06-10T00:31:42Z")

</div>

is there a way to do this?:

```auto
private function blah(evt:MouseEvent):void//Mouse over
{
     //does something to an object (in my case object.alpha -=1)
     evt.target.removeEventListener(MouseEvent.MOUSE_OVER,blah)
}

```

essentially I want to use the same function (eg function blah) for a variety of objects so as I dont know what the exact term used in setting the event listener was I can’t use it in removeing the event listener.

Big thanks for taking the time!
