
Код:
my_xml = new XML();
my_xml.load("my.xml");
_root.start_time = getTimer();
my_xml.onData = function(s) {
_root.time_for_load = getTimer()-_root.start_time;
if (s != null) {
this.loaded = true;
this.parseXML(s);
this.onLoad(true);
} else {
this.loaded = false;
this.onLoad(false);
}
};