# removeEventListener Problems

**URL:** https://forum.kirupa.com/t/removeeventlistener-problems/279735
**Category:** flash
**Created:** [January 18, 2009, 4:18pm UTC](https://forum.kirupa.com/t/removeeventlistener-problems/279735 "2009-01-18T16:18:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DrMaxMad](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@DrMaxMad](https://forum.kirupa.com/u/DrMaxMad)
#### Post date: [January 18, 2009, 4:18pm UTC](https://forum.kirupa.com/t/removeeventlistener-problems/279735/1 "2009-01-18T16:18:34Z")

</div>

Hi,

I am having some problems with removing events , here is the code.

```auto
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragIt);

rect_mc.addEventListener(MouseEvent.CLICK, clickIt);

function dragIt(eve:MouseEvent):void
{
	rect_mc.startDrag(true);
	eve.updateAfterEvent();
}

function clickIt(eve:MouseEvent):void
{
           trace(eve.target.name + " is clicked");
	stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragIt);
}

```

can you please tell me why the event on stage is not removed, even if i click like thousand times…

thanks is advance…
