Hi!
Why is this not populationg the fiedls with images? The XML is well formatted (I tested)
myThumb has a Loader called myPicMC, where the pics are supposed to load. I supposed the proble is with the code in [COLOR=Blue]bold blue.[/COLOR]
Thanks!!
function loadXML(loaded) {
if (loaded) {
myNode = this.firstChild;
image = [];
description = [];
total = myNode.childNodes.length;
for (i=0; i<total; i++) {
image* = myNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = myNode.childNodes*.childNodes[1].firstChild.nodeValue;
}
createMovie();
}
else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
////////////
this.attachMovie("thumbMC", "myThumb", getNextHighestDepth());
for (i=1; i<6; i++) {
myThumb.duplicateMovieClip("myThumb"+i, i, {_x:0, _y:(130*i)});
}
////////////
[COLOR=Blue]**
function createMovie() {
this.attachMovie("thumbMC", "myThumb", getNextHighestDepth());
for (j=0; j<total; j++) {
trace("J :"+j);
myThumb.duplicateMovieClip("myThumb"+j, j, {_x:0, _y:(130*j)});
}
firstImage();
}
function firstImage() {
for (p=0; p<total; p++) {
myThumb[p].mypicMC.contentPath = image[p];
myThumb.descriptionTXT.text = description[p];
//trace(p);
trace(image[p]);
}
}**[/COLOR]