我想删除监听器,但无法删除。我使用的方法是:board.removeEventListener(MouseEvent.MOUSE_MOVE, mouseDrag);
var board:UIComponent=new UIComponent();
board.addEventListener(MouseEvent.MOUSE_MOVE, function(event:MouseEvent):void
{
mouseDrag(event,board);
});
private function mouseDrag(event:MouseEvent,board:UIComponent):void
{
var x:Number=rectX + (event.stageX - mouseX);
var y:Number=rectY + (event.stageY - mouseY); board.x=x;
board.y=y;
}
flex AS3.0如何去掉Listener?