# Duplicate MC within MC

**URL:** <https://forum.kirupa.com/t/duplicate-mc-within-mc/48941>\
**Category:** flash\
**Created:** [April 18, 2004, 2:02pm UTC](https://forum.kirupa.com/t/duplicate-mc-within-mc/48941 "2004-04-18T14:02:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alwaysdrifting](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@alwaysdrifting](https://forum.kirupa.com/u/alwaysdrifting)\
**Post date:** [April 18, 2004, 2:02pm UTC](https://forum.kirupa.com/t/duplicate-mc-within-mc/48941/1 "2004-04-18T14:02:58Z")

</div>

Hey,

Can anyone please help me out here. I want to duplicate a movie clip within a MC but can’t seem to do it. Therefore, I just want the button(MC) to appear on the Gallery MC. It is also being dynamically created but that should not matter.

Some Code:

```auto

duplicateMovieClip ("btn", "btn" + child, child);
setProperty ("btn" + child, _y, 170 + child*20);
setProperty ("btn" + child, _x, 190 + child*0);
_root["btn" + child].label.text = nameArray[child];
_root["btn" + child].link = urlArray[child];

```

The MC that is being duplicated is called btn, the movie clip that I want the duplicated MC’s to appear in is Gallery. Hopefully someone can save me,

Cheers,  
Brian
