Duplicate MC within MC

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:


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