Hi! Everything traces, but the images/descriptions don’t load.
Thanks
function loadXML(loaded) {
if (loaded) {
myNode = this.firstChild;
image = [];
description = [];
link = [];
thumbnails = [];
total = myNode.childNodes.length;
for (i=0; i<total; i++) {
image* = myNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = myNode.childNodes*.childNodes[1].firstChild.nodeValue;
}
firstImage();
}
else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
////////////
////////////
this.attachMovie("thumbMC", "myThumb", getNextHighestDepth());
function firstImage() {
for (j=0; j<total; j++) {
trace("J :"+j);
myThumb.duplicateMovieClip("myThumb"+j, j, {_x:0, _y:(130*j)});
thePic = ("myThumb"+j);
trace("thePic: "+thePic);
thePic.prodpicMC.contentPath = image[j];
thePic.descriptionTXT.text = description[j];
trace(image[j]);
trace(description[j]);
}
}