I would like to know how to load for example two xml files, and how to address each of the files?
The red comments will explain what I want
function loadXML(loaded) {
if (loaded) {
[COLOR=“Red”]Taking information from file “student.xml” -->[/COLOR]
_root.names = this.firstChild.childNodes[1].childNodes[0].childNodes[0].firstChild.nodeValue;
_root.grade = this.firstChild.childNodes[1].childNodes[1].childNodes[0].firstChild.nodeValue;
name_txt.text = _root.names;
class_txt.text = _root.grade;
[COLOR=“red”]Taking information from file “Images.xml”–>[/COLOR]
_root.picture = this.firstChild.childNodes[1].childNodes[0].firstChild.nodeValue;
pic_place.loadMovie(_root.picture);
} else {
trace(“file not loaded!”);
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“student.xml”,“images.xml”); [COLOR=“red”]<–loads two files[/COLOR]