# Why is this EventListner looping so many times?

**URL:** https://forum.kirupa.com/t/why-is-this-eventlistner-looping-so-many-times/318763
**Category:** flash
**Created:** [January 29, 2011, 7:13pm UTC](https://forum.kirupa.com/t/why-is-this-eventlistner-looping-so-many-times/318763 "2011-01-29T19:13:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![samiflashflash](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@samiflashflash](https://forum.kirupa.com/u/samiflashflash)
#### Post date: [January 29, 2011, 7:13pm UTC](https://forum.kirupa.com/t/why-is-this-eventlistner-looping-so-many-times/318763/1 "2011-01-29T19:13:45Z")

</div>

I am trying to make it so when you click anwhere on the stage the movieclip cursor is removed.

Code:

```auto
stage.addEventListener(MouseEvent.CLICK,ketchremove);
	function ketchremove (evt:MouseEvent):void
	{
		trace("I am removed");
					
	}

```

if I add a removeEventListener inthere then the image doesnt remove  
I did have stage.removeChild(ketchMC); in there and it worked fine  
but It just keeps looping a million and a half times. How do I make it only try to delete once. Where would I remove the event listener?

also none of my scripts are on the main timeline  
and google is of no help in this situation.

thanks for any help
