# Attachmovie and duplicate movieclip fun

**URL:** <https://forum.kirupa.com/t/attachmovie-and-duplicate-movieclip-fun/276531>\
**Category:** flash\
**Created:** [November 30, 2008, 9:13am UTC](https://forum.kirupa.com/t/attachmovie-and-duplicate-movieclip-fun/276531 "2008-11-30T09:13:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clot](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@clot](https://forum.kirupa.com/u/clot)\
**Post date:** [November 30, 2008, 9:13am UTC](https://forum.kirupa.com/t/attachmovie-and-duplicate-movieclip-fun/276531/1 "2008-11-30T09:13:58Z")

</div>

Ok having some issues with this:

I create a new movieclip:

this.createEmptyMovieClip(“setClip1”, this.getNextHighestDepth());

and then I attach a bunch of the same movieclip from the library to my new clip:  
(in a for loop)  
this.setClip1.attachMovie(“dashLine”,“dashLine”+i,this.setClip1.getNextHighestDepth());

This is all working fine. BUT, I try to duplicate this movieclip:

\_root.setClip1.duplicateMovieClip(“setLeft1”,this.getNextHighestDepth());

And it seems to work - I can trace the \_x/\_y values and such so it sees my new clip but nothing shows up. It’s just blank.

So my question I guess to start is this:

When you use duplicateMovieClip, does it bring with it all of the attached movieclips as well or does it not include the attached clips as well?

Any help is very much appreciated - especially if any of you overseas guys are online at this hour. :wasted:
