function parseData(node) {
var _loc14 = node.nodeType;
if (_loc14 == 3) {
return (node.nodeValue);
} else {
var _loc3 = new Array();
var _loc11 = node.attributes;
for (var _loc12 in _loc11) {
_loc3[_loc12] = _loc11[_loc12];
}
// end of for...in
var _loc9 = node.childNodes;
var _loc10 = _loc9.length;
for (var _loc5 = 0; _loc5<_loc10; ++_loc5) {
var _loc8 = _loc9[_loc5];
var _loc4 = parseData(_loc8);
var _loc1;
if (typeof (_loc4) == "string") {
_loc1 = "#CDATA";
} else {
_loc1 = _loc8.nodeName;
}
// end else if
if (_loc3[_loc1]) {
_loc3[_loc1].push(_loc4);
continue;
}
// end if
for (var _loc2 = _loc5; _loc2<_loc10; ++_loc2) {
var _loc6 = _loc9[_loc2];
var _loc7 = _loc6.nodeName;
if (_loc1 == _loc7) {
_loc3[_loc1] = new Array();
_loc3[_loc1].push(_loc4);
break;
}
// end if
}
// end of for
if (!_loc3[_loc1]) {
_loc3[_loc1] = _loc4;
}
// end if
}
// end of for
return (_loc3);
}
// end else if
}
// End of the function
function loadXML() {
link_xml = new XML();
link_xml.ignoreWhite = true;
link_xml.onLoad = function(success) {
if (success == true) {
category = parseData(this).category;
gotoAndPlay(2);
}
// end if
};
link_xml.load("info.xml");
}
// End of the function
stop();
System.useCodepage = true;
Stage.scaleMode = "noScale";
loadXML();
fscommand("allowScale", true);