# ActionScript 2 XML Photo Gallery

**URL:** https://forum.kirupa.com/t/actionscript-2-xml-photo-gallery/288245
**Category:** flash
**Created:** [May 13, 2009, 9:19am UTC](https://forum.kirupa.com/t/actionscript-2-xml-photo-gallery/288245 "2009-05-13T09:19:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LonelyStar](https://avatars.discourse-cdn.com/v4/letter/l/57b2e6/32.png) [@LonelyStar](https://forum.kirupa.com/u/LonelyStar)
#### Post date: [May 13, 2009, 9:19am UTC](https://forum.kirupa.com/t/actionscript-2-xml-photo-gallery/288245/1 "2009-05-13T09:19:27Z")

</div>

Hello! I’ve made a photo gallery and it’s working but, i want to make a scrollbar for the thumbnails and i don’t know how to make it. I wan’t to make a scrollbar something like this [http://cursurifotografie.ro](http://cursurifotografie.ro)  
Here is the AS2 code:

loader.onEnterFrame = function(){  
this.loadMovie(“img1/1.jpg”);  
loader2.loadMovie(“img1/1.jpg”);  
loader2.\_alpha=40;}

myPhoto =new XML();  
myPhoto.ignoreWhite = true;  
myPhoto.onLoad = function(){  
nrImages =this.firstChild.childNodes.length;  
spacing =65;  
for(i=0; i\<nrImages; i++){  
this.picholder=this.firstChild.childNodes\*;  
this.thumbholder=thumbnails.createEmptyMovieClip(“thumbnail”+i,i);  
this.thumbholder.\_y =i\*spacing  
this.thumbloader = this.thumbholder.createEmptyMovieClip(“thumbnail2”, 0);  
this.thumbloader.loadMovie(this.picholder.attributes.imgSmall);  
this.thumbholder.title =this.picholder.attributes.imgTitle;  
this.thumbholder.mare=this.picholder.attributes.imgBig;  
this.thumbholder.onRelease = function(){  
loader.loadMovie(this.imgBig);  
loader2.loadMovie(this.imgBig);  
loader2.\_alpha=40;  
title\_txt.text=this.title;  
}  
}  
}  
myPhoto.load(“galery.xml”);
