# I die: duplicateMovieClip() w/ children

**URL:** <https://forum.kirupa.com/t/i-die-duplicatemovieclip-w-children/193003>\
**Category:** flash\
**Created:** [July 3, 2006, 4:07pm UTC](https://forum.kirupa.com/t/i-die-duplicatemovieclip-w-children/193003 "2006-07-03T16:07:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saevik](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@saevik](https://forum.kirupa.com/u/saevik)\
**Post date:** [July 3, 2006, 4:07pm UTC](https://forum.kirupa.com/t/i-die-duplicatemovieclip-w-children/193003/1 "2006-07-03T16:07:48Z")

</div>

Hi,

I have yet another “I die-problem”, not so drastic this time, though. I’ve only tried to solve it for two hours or so, but still… :ogre: argh, it’s killing me :evil2: Well, as usual, I end up here, at the Kirupa forums… and of course, l end up emptying the coffe-machine at work… _runs for more espresso_ :run:

Now;  
It’s an issue regarding the duplicateMovieClip function. I know how it works, and I know how to duplicate MovieClips using the function, however, I do have an issue figuring _this_ out: Now, explained roughly:

I have a MovieClip which contains yet another MovieClip. I want to duplicate both the MovieClip and it’s child, but I want it to stay inside the parent MovieClip, just as the original MovieClip contained the original child… (but both of these are duplicates, of course…)

myMovieClip -\> myMovieClipChild

duplicates to:

myMovieClip0 -\> myMovieClipChild0  
myMovieClip1 -\> myMovieClipChild1

and so on…

In case you don’t have it next-door, the code for duplicating a movieclip can be found [here](http://www.kirupa.com/developer/actionscript/duplicatemovie_mx2004.htm)… ([kirupa.com](http://kirupa.com))

I just can’t figure this out. If anyone can help, in any way, I’d appreciate **aLOT** (as always :D)…

Now, how?

Hurry!, before them :ogre:'s gets me! 😃

Thanks for your help, :thumb2:  
Peter
