Remove MouseEvent?

hi,
I have a AS3 problem and i’m pretty lost on that probably easy stuff.
I have a mc that serves as a button:


myButton.addEventListener(MouseEvent.CLICK,click);

Then i just want to “kill” that mouseEvent…i have no clue. I tried removeEventListener but it seems not to work. Any idea ?
Thank’s in advance.

myButton.removeEventListener(MouseEvent.CLICK,click); should work, i’m pretty much 100% about that, if not, maybe try passing it a weakReference to true (the last param) :

myButton.removeEventListener(MouseEvent.CLICK,click, false, 0, true);

removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.

The problem may be in referencing button itself.
Externally:

myButton.removeEventListener(MouseEvent.CLICK,click);  

Internally:

event.currentTarget.removeEventListener(MouseEvent.CLICK,click);