function LoadXML(loaded) {
if (loaded) {
_root.kul_ad.text = this.firstChild.firstChild.childNodes[0].nodeValue;
_root.kul_kalyon = this.firstChild.childNodes[1].firstChild.nodeValue;
_root.kul_kadirga.text = this.firstChild.childNodes[2].firstChild.nodeValue;
_root.kul_puan.text = this.firstChild.childNodes[3].firstChild.nodeValue;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("xml.php");
I have swf get values from a xml.
I want:
when I send a change to xml, flash will detect that automatically
myLoadInteval = setInterval(LoadFile, 2000);
function LoadFile() {
xmlData.load("xml.php");
}
didn’t work