# Dynamically called MC is called "instance 000" when traced...This is a problem

**URL:** <https://forum.kirupa.com/t/dynamically-called-mc-is-called-instance-000-when-traced-this-is-a-problem/285676>\
**Category:** Uncategorized\
**Created:** [April 3, 2009, 8:08pm UTC](https://forum.kirupa.com/t/dynamically-called-mc-is-called-instance-000-when-traced-this-is-a-problem/285676 "2009-04-03T20:08:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spizer511](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@spizer511](https://forum.kirupa.com/u/spizer511)\
**Post date:** [April 3, 2009, 8:08pm UTC](https://forum.kirupa.com/t/dynamically-called-mc-is-called-instance-000-when-traced-this-is-a-problem/285676/1 "2009-04-03T20:08:16Z")

</div>

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.

```auto
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!
