Hi there,
I have a movieclip, and there is a movieclip inside of it that is being used as a button to close the parent movieclip. the idea is that this is a text box that appears, and then you hit the close mc to close the textbox.
As far as i can tell closeME() is where i’m lost. any suggestions would be great!
thanks in advance
public function closeME(e:MouseEvent) {
e.target.parent.removeChild(this);
// this is where its not working!!!!!
}
public function doM0(e:MouseEvent):void {
var TB0:intro_mc = new intro_mc();
TB0.x = stage.stageWidth / 2;
TB0.y = stage.stageHeight / 2;
TB0.CLOSES.buttonMode = true;
TB0.CLOSES.addEventListener(MouseEvent.CLICK, closeME);
parent.addChild(TB0);
}