Hi everyone.
I got this function with an eventlistener like this:
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?