# Xml photo gallery transitions

**URL:** <https://forum.kirupa.com/t/xml-photo-gallery-transitions/203342>\
**Category:** Uncategorized\
**Created:** [October 10, 2006, 10:03am UTC](https://forum.kirupa.com/t/xml-photo-gallery-transitions/203342 "2006-10-10T10:03:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmyrob](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jimmyrob](https://forum.kirupa.com/u/jimmyrob)\
**Post date:** [October 10, 2006, 10:03am UTC](https://forum.kirupa.com/t/xml-photo-gallery-transitions/203342/1 "2006-10-10T10:03:37Z")

</div>

Hi, I have an xml photo gallery which is fully functional but lacking in the bells and whistles department! My actionscript is below - How do I go about creating a resizable border for the large image each time a thumbnail is clicked?

myPhoto = new XML();  
myPhoto.ignoreWhite = true;  
myPhoto.onLoad = function(success) {  
//portfolioTag = this.firstChild;  
numimages = this.firstChild.childNodes.length;  
spacing = 110;  
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.thumbHolder.onRelease = function() {  
loader.loadMovie(this.main);  
title\_txt.text = this.title;  
varName.text = this.country;  
};  
}  
};

myPhoto.load(“[http://tarantula/gallery/xmlData.aspx?countryName](http://tarantula/gallery/xmlData.aspx?countryName)=” + country);

thanks!
