XML Photogallery... thumbnails in rows and columns

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

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…


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: