# How would I seperate a MC?

**URL:** <https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009>\
**Category:** flash\
**Created:** [April 18, 2006, 12:53pm UTC](https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009 "2006-04-18T12:53:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoRdAnMaN](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JoRdAnMaN](https://forum.kirupa.com/u/JoRdAnMaN)\
**Post date:** [April 18, 2006, 12:53pm UTC](https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009/1 "2006-04-18T12:53:29Z")

</div>

Would it be possible to take a mc that is inside a mc like say \_root.mc1.mc2 would i be able to make say a button so that in the swf when i hit that button mc2 is brought to \_root and if i hit another button with \_root.mc2 it would respond. Sry if im making it sound confusing, but if anyone can understand it plz help me

---

<div class="post-metadata">

**Author:** ![btibia](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/btibia/32/1625_2.png) [@btibia](https://forum.kirupa.com/u/btibia)\
**Post date:** [April 18, 2006, 1:01pm UTC](https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009/2 "2006-04-18T13:01:56Z")

</div>

What i understand from what you say, sounds like this:

You have MC1 and inside MC1 you have MC2, and you want to apply to MC2 a button script…yes?  
But future i didn’t understand what you want?Can you be more specificaly?

---

<div class="post-metadata">

**Author:** ![Mirandir](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Mirandir](https://forum.kirupa.com/u/Mirandir)\
**Post date:** [April 18, 2006, 2:01pm UTC](https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009/3 "2006-04-18T14:01:43Z")

</div>

There is no way to move a movieclip from one timeline to another. The only way is to use attachMovie() to attach a new instance of the movieclip on the target timeline.

/Mirandir

---

<div class="post-metadata">

**Author:** ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)\
**Post date:** [April 18, 2006, 11:36pm UTC](https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009/4 "2006-04-18T23:36:22Z")

</div>

yeah I would use the attach movie, because flash has no actual function to change an objects parent… So I would use localToGlobal or getBounds, to pass the objects co-ordinates then attach the movie to those points 😉

---

<div class="post-metadata">

**Author:** ![JoRdAnMaN](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@JoRdAnMaN](https://forum.kirupa.com/u/JoRdAnMaN)\
**Post date:** [April 19, 2006, 5:04pm UTC](https://forum.kirupa.com/t/how-would-i-seperate-a-mc/186009/5 "2006-04-19T17:04:46Z")

</div>

I know that duplicating a mc is another way i could do it, but the problems i keep running into with that is when my duplicated mc appears, it doesnt play, and it also doesnt appear exactly where i want it to. The mc im trying to duplicate i want to appear exactly where another mc already is. If any of u have played Mortal Kombat, to better explain it, im trying to make blood appear with a duplicated mc. Anyone know a good script i could use for this?
