# XML Photogallery... thumbnails in rows and columns

**URL:** <https://forum.kirupa.com/t/xml-photogallery-thumbnails-in-rows-and-columns/182287>\
**Category:** Uncategorized\
**Created:** [March 16, 2006, 10:23pm UTC](https://forum.kirupa.com/t/xml-photogallery-thumbnails-in-rows-and-columns/182287 "2006-03-16T22:23:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dre\_ah](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@dre\_ah](https://forum.kirupa.com/u/dre_ah)\
**Post date:** [March 16, 2006, 10:23pm UTC](https://forum.kirupa.com/t/xml-photogallery-thumbnails-in-rows-and-columns/182287/1 "2006-03-16T22:23:03Z")

</div>

hello, … I am new to this… I’ve done the XML/Flash photogallery tutorial and it is great…

[http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)

but i’m trying to put the thumbs in rows and colums… ie… so that there are 5 thumbs in two rows instead of 10 thumbs in one row…

here is the AS…

```auto

function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
        target_mc._x = (target_mc._width+6)*k;
        target_mc.pictureValue = k;
        target_mc.onRelease = function() {
            p = this.pictureValue-1;
            nextImage();
        };
        target_mc.onRollOver = function() {
            this._alpha = 50;
            thumbNailScroller();
        };
        target_mc.onRollOut = function() {
            this._alpha = 100;
        };
    };
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
 [FONT=Courier New][/FONT]

```

Any input is greatly welcomed…

thnx  
drea:look:
