# .attachMovie Question

**URL:** <https://forum.kirupa.com/t/attachmovie-question/196555>\
**Category:** Uncategorized\
**Created:** [August 9, 2006, 1:10pm UTC](https://forum.kirupa.com/t/attachmovie-question/196555 "2006-08-09T13:10:40Z")\
**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:** [August 9, 2006, 1:10pm UTC](https://forum.kirupa.com/t/attachmovie-question/196555/1 "2006-08-09T13:10:40Z")

</div>

guys… im creating a flash that attachMovie from Library and loadMovie into this attached movie… here the code:

```auto

var mdXML:XML = new XML();
mdXML.ignoreWhite = true;
mdXML.load(_global.path + "midia.xml");
mdXML.onLoad = function() {
    var qtd:Number = this.childNodes[0].childNodes[2].childNodes.length;
    for (ver = 0; ver < qtd; ver++) {
        var txJNome = (this.childNodes[0].childNodes[2].childNodes[ver].childNodes[0].firstChild);
        var txJImg = (this.childNodes[0].childNodes[2].childNodes[ver].childNodes[1].firstChild);
        var txJDsc = (this.childNodes[0].childNodes[2].childNodes[ver].childNodes[2].firstChild);
        attachMovie("jobClip","job"+ver,1+ver);
        "job"+ver.cont.loadMovie(_global.path + txJImg);
    }
    //#
}

```

The childNodes is right, but when i put the new name for a jobClip, that is attached, give me error in line:

```auto

"job"+ver.cont.loadMovie(_global.path + txJImg);

```

how use the new name for atribute new parameters ???

Thanks in advance.
