# Attach MC

**URL:** <https://forum.kirupa.com/t/attach-mc/263008>\
**Category:** flash\
**Created:** [June 11, 2008, 8:40pm UTC](https://forum.kirupa.com/t/attach-mc/263008 "2008-06-11T20:40:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrManIsHere](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mrManIsHere](https://forum.kirupa.com/u/mrManIsHere)\
**Post date:** [June 11, 2008, 8:40pm UTC](https://forum.kirupa.com/t/attach-mc/263008/1 "2008-06-11T20:40:57Z")

</div>

Im having some problem attaching a movieclip on stage.  
Im having a MovieClip that is laying on stage, and in this movieClip there is 3 other movieClip.  
And each movieClip containing a button.  
My problem is attaching a movieClip from library on stage when pressing a button.  
i do have a movieClip as a container on stage, but nothing happen.  
I guess it have something to do with my buttons being inside of a movieClip that is inside of a n other clip?

---

<div class="post-metadata">

**Author:** ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)\
**Post date:** [June 11, 2008, 8:57pm UTC](https://forum.kirupa.com/t/attach-mc/263008/2 "2008-06-11T20:57:52Z")

</div>

I Don’t think there’s a problem if your button is inside a clip. You just want to be careful when you write the script, to use \_root or \_parent, depending on where do you want to go with the command.  
Maybe the problem is that (if I got it right), you have different button one upon the other: this generate a conflict with the sensible area of each button. Pay attention with that!

---

<div class="post-metadata">

**Author:** ![nosh247](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nosh247](https://forum.kirupa.com/u/nosh247)\
**Post date:** [June 11, 2008, 8:58pm UTC](https://forum.kirupa.com/t/attach-mc/263008/3 "2008-06-11T20:58:16Z")

</div>

Hi, can you show us the line you are using to attach the movieclips?  
Have you named your MovieClips with Identifiers?  
Maybe if you showed us your code could be more specific.

---

<div class="post-metadata">

**Author:** ![mrManIsHere](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mrManIsHere](https://forum.kirupa.com/u/mrManIsHere)\
**Post date:** [June 13, 2008, 6:31pm UTC](https://forum.kirupa.com/t/attach-mc/263008/4 "2008-06-13T18:31:59Z")

</div>

[QUOTE=nosh247;2341007]Hi, can you show us the line you are using to attach the movieclips?  
Have you named your MovieClips with Identifiers?  
Maybe if you showed us your code could be more specific.[/QUOTE]

This is the code that im using on my button

```php
on(release){
_root.container.attachMovie("video_b","video");
}

```

container is the instance name and linkage on the container that have placed on the root stage. Video\_b is the linkage on the MovieClip that i want to attach in the container and video is the new instance name, i hoping that im totaly wrong so this can be fixed !

---

<div class="post-metadata">

**Author:** ![mrManIsHere](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mrManIsHere](https://forum.kirupa.com/u/mrManIsHere)\
**Post date:** [June 17, 2008, 6:39pm UTC](https://forum.kirupa.com/t/attach-mc/263008/5 "2008-06-17T18:39:51Z")

</div>

Everything is working now, cheers!
