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
//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");