# duplicateMovieClip Issues

**URL:** <https://forum.kirupa.com/t/duplicatemovieclip-issues/93193>\
**Category:** Uncategorized\
**Created:** [October 27, 2003, 12:29pm UTC](https://forum.kirupa.com/t/duplicatemovieclip-issues/93193 "2003-10-27T12:29:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaraAvis](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@RaraAvis](https://forum.kirupa.com/u/RaraAvis)\
**Post date:** [October 27, 2003, 12:29pm UTC](https://forum.kirupa.com/t/duplicatemovieclip-issues/93193/1 "2003-10-27T12:29:42Z")

</div>

Okay, so what I want is a set of 5 boxes.  
I want these boxes arranged 2 per row, so there should be 3 rows in total with the last row only having 1 box in it.

```auto

  [] []
  [] []
  []

```

Exactly like the above example.

Now I’m doing this by duplicating the 1 mc 5 times, here is my code:

```auto

onClipEvent(enterFrame) {
        var i = 1
        var ctr = 1
        
        while (i < 5) {
                
                if (ctr = 1) {
                        
                        mctemp = _root.picture1.duplicateMovieClip(i, i);
                        mctemp._x = 300;
                        i++;
                        ctr = 2;
                }
                else {
                        
                        mctemp = _root.picture1.duplicateMovieClip(i, i);
                        mctemp._x = 43;
                        mctemp._y = 100;
                        i++;
                        ctr = 1;
                        
                }
                
        }
        
}

```

And all I get is out put is the first row of boxes…

ie:

```auto

  [] []

```

and no more. Can anyone see the error in my code?

Thanks in advance guys,  
RaraAvis
