# Double duplication for xml

**URL:** <https://forum.kirupa.com/t/double-duplication-for-xml/230547>\
**Category:** flash\
**Created:** [June 27, 2007, 4:11am UTC](https://forum.kirupa.com/t/double-duplication-for-xml/230547 "2007-06-27T04:11:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![youwh](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@youwh](https://forum.kirupa.com/u/youwh)\
**Post date:** [June 27, 2007, 4:11am UTC](https://forum.kirupa.com/t/double-duplication-for-xml/230547/1 "2007-06-27T04:11:26Z")

</div>

I wanted to load a dynamic loaded pic, into a dymanic duplicated MC, any ideas how can I do it?

For now, I separately load the pic to the root,and not the duplicate MC, but it wont work.

```auto

var ij = 0;
function dupMovie() {
    for (i=0; i<31; i++) {
        navigation.duplicateMovieClip("navigation"+i,i,{_x:50+(i%columns)*spacex, _y:20+Math.floor(i/columns)*spacey});
    }
}
dupMovie();
function sload() {
    var th = navigation.thumbnail_holder;
    for (var i = 0; i<total; i++) {
        var clip = drawSquare(this, i);
        nav._x = 50+(i%columns)*spacex;
        nav._y = 20+Math.floor(i/columns)*spacey;
        clip._x = 50+(i%columns)*spacex;
        clip._y = 20+Math.floor(i/columns)*spacey;
        var clap = clip.createEmptyMovieClip("tn"+i, i);
        clap._x = 0;
        clap._y = Stage.height-110;
        cliparray.push(clap);

        clip3.onRollOver = function() {
            navigation10.play();
            navigation10.rewind = false;
        };
        clip3.onRollOut = function() {
            navigation10.rewind = true;
        };
    }
    startload();
}

```

i would like both to both to be " **for (var i = 0; i\<total; i++)**" but,whenever i have both total, the mc wont duplicate. Left say if i have 10pic in the xml pic, then if the mc i also use total, it wont duplicate. It will only duplicate 1 if i write **“i\<11”** for MC
