In my Actionscript I added this for the button:
on (rollOver) {
gotoAndPlay("over");
}
on (rollOut) {
gotoAndPlay("out");
}
on (release) {
getURL(_root.linkbtn, "_self");
}
Then I updated the XML to be this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg</image>
<caption>Kresge</caption>
<link>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg</link>
</pic>
</images>
And finally the actionscript that calls the XML looks like this:
stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
link.text = _root.linkbtn;
I am probably missing something really basic.