So! I’ve got a website I’m working on with a very simple three button interface…
First off, I’ve got a dynamically called Movieclip that’s a child of the stage. What I’m attempting to do now, is make it so that when you click anywhere that isn’t the Movieclip, it kills said Movieclip!
I tried to do this by calling a function that looks at the name of the Movieclip, but for some reason, the dynamically called Movieclip is called “instance 000”… Any suggestions?
here’s the function that calls the Movieclip.
function ResumeAction (e:MouseEvent):void {
var ResumePane_MC:Resume_Pane = new Resume_Pane();
ResumePane_MC.x = stage.stageWidth/2;
ResumePane_MC.y = stage.stageHeight/2-50;
ResumePane_MC.name = "ResumeName";
stage.addChildAt (ResumePane_MC, stage.numChildren);
stage.addEventListener(MouseEvent.CLICK, CheckTo Close);
}
Any help for finding the reference of my dynamically loaded Movieclip would be GREATLY appreciated!
Cheers!