# A little help with duplicate movie clip and arrays

**URL:** <https://forum.kirupa.com/t/a-little-help-with-duplicate-movie-clip-and-arrays/176116>\
**Category:** Uncategorized\
**Created:** [January 20, 2006, 1:57pm UTC](https://forum.kirupa.com/t/a-little-help-with-duplicate-movie-clip-and-arrays/176116 "2006-01-20T13:57:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesainter](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@thesainter](https://forum.kirupa.com/u/thesainter)\
**Post date:** [January 20, 2006, 1:57pm UTC](https://forum.kirupa.com/t/a-little-help-with-duplicate-movie-clip-and-arrays/176116/1 "2006-01-20T13:57:54Z")

</div>

in the first duplicate move clip I’m loading an array. I want to duplicate the movie “slide” again. so i get the same movie with the array and an other name on the right of the original movie.

at this moment It only loads one slice from the array and I need all.

please help///

```
//mMaskedSLice

//array with the gotoandstop frames
clipArray = new Array(33, 66, 99, 133, 166, 199, 233, 266, 299);

//trace(clipArray.length);

for(i = 0; i &lt; clipArray.length; i++) {

    duplicateMovieClip("_root.slideContainer.slide.mMaskedSLice", "mMaskedSLice" + i, _root.slideContainer.slide.getNextHighestDepth());
    newMcName = eval("_root.slideContainer.slide.mMaskedSLice" + i);
    newMcName._x = 2 + (112 * i);
    newMcName.movie.gotoAndStop(clipArray*);
    newMcName.onRollOver = function() {
        this.movie.play();
    }
    newMcName.onRollOut = function() {
        this.movie.stop(); 
    }
}

duplicateMovieClip("_root.slideContainer.slide.", "duplicatedslide", _root.slideContainer.getNextHighestDepth());

_root.slideContainer.slide.duplicatedslide._x = _root.slideContainer.slide._width;

//trace("ok")

```

trace(\_root.slideContainer.duplicatedslide.\_width)  
trace(\_root.slideContainer.slide.\_width)
