# Loading the last node only

**URL:** <https://forum.kirupa.com/t/loading-the-last-node-only/230295>\
**Category:** Uncategorized\
**Created:** [June 25, 2007, 3:47am UTC](https://forum.kirupa.com/t/loading-the-last-node-only/230295 "2007-06-25T03:47:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [June 25, 2007, 3:47am UTC](https://forum.kirupa.com/t/loading-the-last-node-only/230295/1 "2007-06-25T03:47:00Z")

</div>

I am loading some external jpgs through xml but for some reason my code is only loading the last one. Can you guys see anything that would cause it to do that?

```auto

var listlength = _root.listxml.firstChild.firstChild.childNodes.length;

for(i=0;i<listlength;i++) {
    var theItem = _root.listxml.firstChild.firstChild.childNodes*.attributes.src;
    this.listLoader.createEmptyMovieClip("logoHolder"+i,this.getNextHighestDepth());
    this.listLoader.loadMovie("thelist/"+theItem,"logoHolder"+i);
    this.listLoader["logoHolder"+i]._y = i*65;
}

```
