# duplicateMovieClip wont duplicate!

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-wont-duplicate/244207>\
**Category:** flash\
**Created:** [November 15, 2007, 7:02am UTC](https://forum.kirupa.com/t/duplicatemovieclip-wont-duplicate/244207 "2007-11-15T07:02:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BuG56](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@BuG56](https://forum.kirupa.com/u/BuG56)\
**Post date:** [November 15, 2007, 7:02am UTC](https://forum.kirupa.com/t/duplicatemovieclip-wont-duplicate/244207/1 "2007-11-15T07:02:31Z")

</div>

Working on FL8 AS2

Hello all, I’ve always had a problem getting the duplicateMovieClip to work properly… So here’s my code:

```auto

for (i=0; i<_root.level.length; i++)
    {
        for (j=0; j<_root.level*.length; j++)
        {
            if (_root.level*[j] == 1)
            {
                setProperty(_root.block0, _x, j*10);
                setProperty(_root.block0, _y, i*10);
                duplicateMovieClip(_root.block0,"temp"+i+j, 0,);
            }
        }
    }

```

In theory…for each pass shouldnt it:

Reposition block0’s x and y  
duplicate block0 on that position.  
move on

but it seems only the setProperty works because my block0 eventually ends up at the last position. Can anyone help me duplicate it properly? Any help is appreciated. Thank you.
