I am loading a set of images into masked movie clips via an XML file, and then attemting to hyperlink the Movieclip with a URL obtained from the XML.
The problem I am having is that the 1st, 3rd, 5th and 7th clips are not behaving as if they have a hyperlink attached to them the others are fine.
I'm sure I'm missing something really obvious here, but for the life of me I can't see it... someone put me out of my misey please, code is attached, let me know if you want all the files and I will email them over.
Cheers
Attach Code
_global.image = new Array();
_global.desc = new Array();
_global.web = new Array();
_global.del = new Array();
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
_root.m0.onRelease = function() {
getURL("http://www.yell.com", "_blank");
};
_root.m1.onRelease = function() {
getURL(web[1], "_blank");
};
_root.m2.onRelease = function() {
getURL(web[2], "_blank");
};
_root.m3.onRelease = function() {
getURL(web[3], "_blank");
};
_root.m4.onRelease = function() {
getURL(web[4], "_blank");
};
_root.m5.onRelease = function() {
getURL(web[5], "_blank");
};
_root.m6.onRelease = function() {
getURL(web[6], "_blank");
};
_root.m7.onRelease = function() {
getURL(web[7], "_blank");
};
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
desc[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
web[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
loadMovie(image[i], "con" + i);
_root["t"+i].text = desc[i];
trace(web[i]);
}
} else {
content = "file not loaded!";
}
};