# My XML gallery needs next button

**URL:** <https://forum.kirupa.com/t/my-xml-gallery-needs-next-button/155813>\
**Category:** flash\
**Created:** [July 20, 2005, 2:34pm UTC](https://forum.kirupa.com/t/my-xml-gallery-needs-next-button/155813 "2005-07-20T14:34:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rai\_kane3](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rai\_kane3](https://forum.kirupa.com/u/rai_kane3)\
**Post date:** [July 20, 2005, 2:34pm UTC](https://forum.kirupa.com/t/my-xml-gallery-needs-next-button/155813/1 "2005-07-20T14:34:51Z")

</div>

I have an xml galler which pulls my images in and sets them in coloumns of three what I need is a next button in my thumbnail movie clip which takes in the next set of images after 5 coloumns have loaded… “if that makes sense”

in my thumbnail mc I have this action script which loads my thumbs

> 

images = new Array ();  
xml\_file = (“wheels/limited/images.xml”);  
//xml\_file = “images.xml”;  
xmlload = new XML ();  
xmlload.ignoreWhite = true;  
xmlload.onLoad = function (ok) {  
if (ok) {  
count = this.firstChild.childNodes.length;  
for (var i = 0; i \< count; i++) {  
curNode = this.firstChild.childNodes\*;  
images\* = {caption:curNode.childNodes[0].firstChild.nodeValue, path:curNode.childNodes[1].firstChild.nodeValue};  
}  
boot ();  
} else {  
trace ("Could not load " + xml\_file + “.”);  
}  
};  
xmlload.load (xml\_file);  
// ------------------------------------------------------------  
spacing = 2;  
var columns = 3;  
boot = function () {  
for (var i = 0; i \< images.length; i++) {  
mc = container.attachMovie (“thumbMC”, “thumb” + i, i);  
mc.\_x = (i%columns)\* (80+spacing);  
mc.\_y = Math.floor(i/columns)_(80+spacing);  
mc.path = “wheels/limited/thumbs/” + images_.path + “.jpg”;  
mc.link = “wheels/limited/images/” + images\*.path + “.jpg”;  
mc.caption = images\*.caption;  
}  
this.\_parent.picture.\_alpha = 0;  
this.\_parent.caption.\_alpha = 0;  
this.\_parent.picture.loadMovie (“wheels/limited/images/” + images[0].path + “.jpg”);  
this.\_parent.caption.txt = images[0].caption;  
setRollOver ();  
};

any idears please
