Ex: The variable something is a random sprite
something.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent)
{
    //Now I want to remove the eventlistener from something
}
How can I do that in AS3?
Ex: The variable something is a random sprite
something.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(e:MouseEvent)
{
    //Now I want to remove the eventlistener from something
}
How can I do that in AS3?
 
    
    something.removeEventListener(MouseEvent.CLICK, clickHandler);
or if something is a local variable or you use this handler for multiple sprites:
e.currentTarget.removeEventListener(MouseEvent.CLICK, clickHandler);
