Please help!!!
The code I have for my image gallery linked to an xml file with the images and descriptions is below and works fine as is. However, I need to add functions to it. I need to be able to have 2 columns of thumbnails, not just a single column, specifically 2 columns of 8 thumbnails. Also, I need there to be 2 buttons on the stage, “back” and “next” buttons. I need another function which tells the source to create an unlimited number of “pages” with more thumbnails, once the number of images in the xml file is more than 16.
Can anyone help??? Thank you in advance!!!
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
spacing = 70;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes*;
this.thumbHolder = thumbnails.createEmptyMovieClip(“thumbnail”+i, i);
this.thumbHolder._y = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip(“thumbnail_i mage”, 0);
this.thumbLoader.loadMovie(this.picHolder.attribut es.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
this.thumbHolder.onRelease = function() {
loader.loadMovie(this.main);
title_txt.text = this.title;
};
}
};
myPhoto.load(“xmlphoto.xml”);