# XML Image Slider......plz help!

**URL:** https://forum.kirupa.com/t/xml-image-slider-plz-help/275376
**Category:** Uncategorized
**Created:** [November 13, 2008, 3:55am UTC](https://forum.kirupa.com/t/xml-image-slider-plz-help/275376 "2008-11-13T03:55:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![creed1982](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@creed1982](https://forum.kirupa.com/u/creed1982)
#### Post date: [November 13, 2008, 3:55am UTC](https://forum.kirupa.com/t/xml-image-slider-plz-help/275376/1 "2008-11-13T03:55:23Z")

</div>

function loadImages() {

```
for (imageIndex=0; imageIndex&lt;myXml.childNodes[0].childNodes.length; imageIndex++) {
	
	attachMovie("imagebox", "im"+imageIndex, this.getNextHighestDepth());
	
	eval("im"+imageIndex).pic = myXml.childNodes[0].childNodes[imageIndex].childNodes[0].childNodes[0].nodeValue;
	
	eval("im"+imageIndex).caption = myXml.childNodes[0].childNodes[imageIndex].childNodes[1].childNodes[0].nodeValue;
	
	trace(imagebox["im"+imageIndex]);
	
	eval("im"+imageIndex).url = myXml.childNodes[0].childNodes[imageIndex].childNodes[2].childNodes[0].nodeValue;
	
	eval("im"+imageIndex).index = imageIndex;
	
	eval("im"+imageIndex).swapDepths(captionbox);
	
	imagecount++;
}

```

}

this is the code i got from a tutorial…here the images are loader and when the mouse is over each image the CAPTION is shown under the image in a text box. but what i need is…i want the CAPTION to appear when i click on the image(not on mouse over), but i cant find any mouseover event here as well…please help me out.
