I followed this tutorial to make an XML gallery: 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.
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);
}