# Removing eventlistener from another scope

**URL:** <https://forum.kirupa.com/t/removing-eventlistener-from-another-scope/316405>\
**Category:** Uncategorized\
**Created:** [November 20, 2010, 11:26am UTC](https://forum.kirupa.com/t/removing-eventlistener-from-another-scope/316405 "2010-11-20T11:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Batterman](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Batterman](https://forum.kirupa.com/u/Batterman)\
**Post date:** [November 20, 2010, 11:26am UTC](https://forum.kirupa.com/t/removing-eventlistener-from-another-scope/316405/1 "2010-11-20T11:26:41Z")

</div>

Hi everyone.

I got this function with an eventlistener like this:

```auto
		
public function onScroll(denne:MovieClip)
		{
			Main.instance.addEventListener(MouseEvent.MOUSE_WHEEL, onMouseWheelEvent);

			function onMouseWheelEvent(event:MouseEvent):void
			{
				denne.y += event.delta * 50;
			}
		}

```

Is it possible to remove the listener within another As3 file?
