Someone
public text v1 · immutablefunction loadXML(loaded) {
if (loaded) {
_root.month = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.total = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
txt.text = "Audits Run This Month: "+_root.month;
txt2.text = "Audits Run Total: "+_root.total;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("data.xml");