Hello! I've made a photo gallery that loads photos via XML and it's working, and i want to make a scrollbar for the thumbnails so all the thumbnails can be seen, and i want to do something like this:
http://www.cursurifotografie.ro
Here is te AS2 code:
CODE
loader.onEnterFrame = function(){
this.loadMovie("big/1.jpg");
}
myPhoto =new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(){
nrImages =this.firstChild.childNodes.length;
space =64;
for(i=0; i<nrImages; i++){
this.picholder=this.firstChild.childNodes[i];
this.thumbholder=thumbnails.createEmptyMovieClip("thumbnail"+i,i);
this.thumbholder._y =i*space;
this.thumbloader = this.thumbholder.createEmptyMovieClip("thumbnailimage", 0);
this.thumbloader.loadMovie(this.picholder.attributes.imgSmall);
this.thumbholder.title =this.picholder.attributes.imgtitle;
this.thumbholder.imgBig=this.picholder.attributes.imgBig;
this.thumbholder.onRelease = function(){
loader.loadMovie(this.imgBig);
title_txt.text=this.title;
}
}
}
myPhoto.load("gallery.xml");
If somebody can help me with a tutorial or something that teach how to make a custom scrollbar with actionscript 2 i would be very grateful