# Show xml loaded thumbs in two or more lines

**URL:** <https://forum.kirupa.com/t/show-xml-loaded-thumbs-in-two-or-more-lines/195185>\
**Category:** Uncategorized\
**Created:** [July 29, 2006, 11:24am UTC](https://forum.kirupa.com/t/show-xml-loaded-thumbs-in-two-or-more-lines/195185 "2006-07-29T11:24:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![me\_cute](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@me\_cute](https://forum.kirupa.com/u/me_cute)\
**Post date:** [July 29, 2006, 11:24am UTC](https://forum.kirupa.com/t/show-xml-loaded-thumbs-in-two-or-more-lines/195185/1 "2006-07-29T11:24:28Z")

</div>

Hi again,

Im loading image thumbs from an XML file. Currently my code loads all the images in one line. can i somehow break this up so for example if i have 12 images, they show up in three rows, with four thumbs in each row.

thanx  
-Britney

```auto

//loadMovie(""+cell_path+"", "_root.cellphone_big");
myWalls = new XML();
myWalls.ignoreWhite = true;
myWalls.onLoad = function(success) {
    numimages = this.firstChild.childNodes.length;
    spacing = 90;
    for (i=0; i<numimages; i++) {
        this.picHolder = this.firstChild.childNodes*;
        this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
        this.thumbHolder._x = i*spacing;
        this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
        this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
        this.thumbHolder.title = this.picHolder.attributes.title;
        this.thumbHolder.main = this.picHolder.attributes.main;
        this.picHolder._width=50;
        this.picHolder._height=50;
        this.thumbHolder.onRelease = function() {
            contentID = this.main;
            loadMovie(""+contentID+"", "_root.cellphone_big");
            Link = "displayVar.asp?location=" + contentID;
            getURL(Link, "_self", "POST"); //passing image path to a page
            title_txt.text = this.title;
        };
    }
};
myWalls.load("xml/wallpapers.xml");

```
