# XML Caption onRollOver

**URL:** <https://forum.kirupa.com/t/xml-caption-onrollover/159853>\
**Category:** flash\
**Created:** [August 21, 2005, 5:36am UTC](https://forum.kirupa.com/t/xml-caption-onrollover/159853 "2005-08-21T05:36:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rynobot](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rynobot](https://forum.kirupa.com/u/rynobot)\
**Post date:** [August 21, 2005, 5:36am UTC](https://forum.kirupa.com/t/xml-caption-onrollover/159853/1 "2005-08-21T05:36:08Z")

</div>

I followed this tutorial to make an XML gallery: [http://www.kirupa.com/developer/mx2004/thumbnails.htm](http://www.kirupa.com/developer/mx2004/thumbnails.htm)

However I would like to have the captions from my XML file appear on RollOver. I swear I had it working once, but then it stopped and i can’t seem to get it working again? Here is the code that (i think, atleast) is where the script should take place and you will see where I have put in “\_root.infoFollow\_mc.desc\_txt.text = description[p];” to get the caption on RollOver. But it is not working…

Can anyone make this work? thanks.

```auto
function thumbnails_fn(k) {
	thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
	tlistener = new Object();
	tlistener.onLoadInit = function(target_mc) {
		target_mc._x = hit_left._x+(target_mc._width+0)*k;
		target_mc.pictureValue = k;
		target_mc.onRelease = function() {
			p = this.pictureValue-1;
			nextImage();
			getURL(link[p], "_blank");
		};
		target_mc.onRollOver = function() {
			_root.infoFollow_mc.desc_txt.text = description[p];
			_root.infoFollow_mc._alpha = 100;
			this._alpha = 50;
			thumbNailScroller();
		};
		target_mc.onRollOut = function() {
			_root.infoFollow_mc.desc_txt.text = "Project Details";
			_root.infoFollow_mc._alpha = 0;
			this._alpha = 100;
		};
	};
	image_mcl = new MovieClipLoader();
	image_mcl.addListener(tlistener);
	image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

```
