# Multiple duplicate movieclips?

**URL:** <https://forum.kirupa.com/t/multiple-duplicate-movieclips/240182>\
**Category:** Uncategorized\
**Created:** [September 30, 2007, 3:28pm UTC](https://forum.kirupa.com/t/multiple-duplicate-movieclips/240182 "2007-09-30T15:28:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcfiredrill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mcfiredrill/32/3374_2.png) [@mcfiredrill](https://forum.kirupa.com/u/mcfiredrill)\
**Post date:** [September 30, 2007, 3:28pm UTC](https://forum.kirupa.com/t/multiple-duplicate-movieclips/240182/1 "2007-09-30T15:28:28Z")

</div>

Is it possible to use duplicate movieclip on two different movieclips in the same flash movie? Do they need to be on different layers? I tried to do this following the duplicatemovieclip tutorial, but I always get one movieclip showing up and not the other.:book:

So I use this:

```auto
dupMovie = function () {
    for (i=0; i<100; i++) {
        circle.duplicateMovieClip("circle"+i, i, {_x:Math.random()*300, _y:Math.random()*200, _alpha:Math.random()*50});
        with (eval("circle"+i)) {
            _xscale = _yscale=Math.random()*300;
        }
    }
};
dupMovie();

```

then Lets say I try to make another movieclip, a square, I do this:

```auto
dupMovie = function () {
    for (i=0; i<100; i++) {
        square.duplicateMovieClip("square"+i, i, {_x:Math.random()*300, _y:Math.random()*200, _alpha:Math.random()*50});
        with (eval("square"+i)) {
            _xscale = _yscale=Math.random()*300;
        }
    }
};
dupMovie();

```
