Hello. Here I have a code. But it seems not to work. I have a MC called an instanced as image on the first layer.
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function (loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = []; //piltide array
total= xmlNode.childNodes.length;
for (i=0; i<otal; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
}
loadimage();
} else {
content = "no file";
}
}
xmlData.load("images.xml");
function loadimage() {
image.loadMovie(image[0], 1);
}
this is my xml
<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<images>
<pic>
<image>1.jpg</image>
</pic>
<pic>
<image>2.jpg</image>
</pic>
<pic>
<image>3.jpg</image>
</pic>
</images>
what is teh problem?