# Movie clip not attaching

**URL:** <https://forum.kirupa.com/t/movie-clip-not-attaching/253205>\
**Category:** Uncategorized\
**Created:** [February 28, 2008, 3:06am UTC](https://forum.kirupa.com/t/movie-clip-not-attaching/253205 "2008-02-28T03:06:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nukegara](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@nukegara](https://forum.kirupa.com/u/nukegara)\
**Post date:** [February 28, 2008, 3:06am UTC](https://forum.kirupa.com/t/movie-clip-not-attaching/253205/1 "2008-02-28T03:06:23Z")

</div>

Heya, I’m trying to just attach a movie clip inside of another movie clip, and it’s not working…which is beyond me. The following code is written in an actions layer within the first movie clip (main\_mc). I want to attach a close button to close an externally loaded swf, and the close button has to be on top of the externally loaded swf, and it’s not attaching, so therefore I can’t close anything. Yeah, I know it’s really ghetto, but time and ignorance are huge factors XD;;

```auto
stop();
//place the closeContent_btn near the upper right of the metric swf
this.attachMovie("closeMetricContent_mc",2);
    closeMetricContent_mc._x = 400;
    closeMetricContent_mc._y = 400;
    trace("attached closeMetricContent");
    trace(closeMetricContent_mc.getDepth()); 
     

```

any glaring mistakes that I can’t see? o.O this is really confusing, it seems like such a simple task, I must be missing the greater picture.
