# Attaching Movieclips From Library Into a Movieclip

**URL:** <https://forum.kirupa.com/t/attaching-movieclips-from-library-into-a-movieclip/182855>\
**Category:** flash\
**Created:** [March 21, 2006, 11:58pm UTC](https://forum.kirupa.com/t/attaching-movieclips-from-library-into-a-movieclip/182855 "2006-03-21T23:58:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [March 21, 2006, 11:58pm UTC](https://forum.kirupa.com/t/attaching-movieclips-from-library-into-a-movieclip/182855/1 "2006-03-21T23:58:57Z")

</div>

I have a MC shape, its actually a parallelogram and so its slanted and the perspective is tilted a bit (not sure if this matters).

I also have a few different MCs in the library the same shape which I want to place into the MC shape when different buttons are pressed.

For button one, I used this code:

on (release) {  
myShape.attachMovie(“firstMC”);  
}

Am I doing something wrong or using the wrong code? In the library, I named the first MC “firstMC” as you can see. I also put the linkage as “export as actionscript”.

Any clues?

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [March 22, 2006, 12:04am UTC](https://forum.kirupa.com/t/attaching-movieclips-from-library-into-a-movieclip/182855/2 "2006-03-22T00:04:19Z")

</div>

look up attachMovie in Flash help and it will show you the parts of the command you’re missing 🙂 Once you get those in, it should work great

---

<div class="post-metadata">

**Author:** ![999](https://avatars.discourse-cdn.com/v4/letter/9/c5a1d2/32.png) [@999](https://forum.kirupa.com/u/999)\
**Post date:** [March 22, 2006, 12:04am UTC](https://forum.kirupa.com/t/attaching-movieclips-from-library-into-a-movieclip/182855/3 "2006-03-22T00:04:20Z")

</div>

You also have to give it a new name (which can still be the same) and assign a level as well.

```auto
on (release) {
myShape.attachMovie("firstMC", "firstMC_2", 100);
}

```

---

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [March 22, 2006, 12:06am UTC](https://forum.kirupa.com/t/attaching-movieclips-from-library-into-a-movieclip/182855/4 "2006-03-22T00:06:16Z")

</div>

Lol I just checked out [macromedia.com](http://macromedia.com)’s technotes and I was missing the new name and level like both of you said…

Thanks I feel dumb hah.
