# Duplicate movie blip for menu

**URL:** <https://forum.kirupa.com/t/duplicate-movie-blip-for-menu/181817>\
**Category:** Uncategorized\
**Created:** [March 13, 2006, 1:15pm UTC](https://forum.kirupa.com/t/duplicate-movie-blip-for-menu/181817 "2006-03-13T13:15:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![this](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/this/32/669_2.png) [@this](https://forum.kirupa.com/u/this)\
**Post date:** [March 13, 2006, 1:15pm UTC](https://forum.kirupa.com/t/duplicate-movie-blip-for-menu/181817/1 "2006-03-13T13:15:37Z")

</div>

i creat one movie clip that ll be load dinamic text and image from one xml document. well… i wanna do this with duplicateMovieClip but no work.

```auto

path = "";
//#
var xmlMenu:XML = new XML();
xmlMenu.ignoreWhite = true;
xmlMenu.load('data.xml');
xmlMenu.onLoad = function() {
    qtd = this.childNodes[0].childNodes.length;
    for (i=0; i<qtd; i++) {
        var nome = (this.childNodes[0].childNodes*.childNodes[0]);
        var imagemp = (this.childNodes[0].childNodes*.childNodes[1]);
        var imagemg = (this.childNodes[0].childNodes*.childNodes[2]);
        //#
        duplicateMovieClip (but, "but"+i, i);
        setProperty("but"+i, _x, ((i+1)*23));
        setProperty("but"+i, _y, 23);
        //#

        //#
        "but"+i.imagem.loadMovie(path + "small/" + imagemp);
        "but"+i.textofoto.htmlText = nome;
        "but"+i.onRelease = function() { getURL(path + "large/" + imagemg); };
    };
};
//#
this.stop();

```

:red: any idea ? please help-me.
