I have a dynamic text field in a MC that should loop, but for some reason it plays once then vanishes. The text from the XML file does show up, and the text field is still there but blank.
I have checked the basic stuff like anti alias for animation, embed, no stop(); or anything that simple.
Here is the XML, all my instances are labeled correctly in the .fla
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
title = [];
desc = [];
file = [];
site = [];
language = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
title* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
desc* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
language* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
/*
pic* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
image* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
site* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
*/
}
//trace(image);
//trace(title);
//trace(desc);
goAhead();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("samples.xml");
function goAhead(){
for(c=0; c<total;c++){
var entry = "module"+c;
_root.module0.details.details2.languagetext.text = language[c];
_root.testclip.testtext.text = title[c];
}