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

function loadImages() {

for (imageIndex=0; imageIndex<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.