改成如下:stage.addEventListener(MouseEvent.CLICK,RemoveChild);function RemoveChild(e:MouseEvent):void{this.removeChild(a);}