I ran this script copied from the web page and it crashed for me too. So I downloaded the files and ran them instead. Flash 8 kept wanting to save it as Flash 8 format. Meanwhile I noticed that there were yellow markers in the left hand frame of the actionscript panel suggesting that it had to be saved as minimum ver 6 to run, so I upped my publish settings to 6, saved it in flash 8 format and it ran perfectly.
Cheeeeeeeeeers.t3rry();
// when xml is loaded call functon displayXML
XML_var.onLoad = displayXML;
// now load up the url.
XML_var.load("flash.xml");
// display in txt xml is loading
txt = "Loading data...";
function displayXML() {
mainTag = new XML();
elementTag = new XML();
articleList = new Array();
elementList = new Array();
mainTag = this.firstChild.nextSibling;
articleList = mainTag.childNodes;
txt = "";
//loop through xml
for (i=0; i<=articleList.length; i++) {//start for
if (articleList[i].nodeType == 1) {
elementList = articleList[i].childNodes;
//start for
for (j=0; j<=elementList.length; j++) {//start for
elementTag = elementList[j];
head = elementTag.firstChild.nodeValue;
if (elementTag.nodeType == 1) {
txt += head+"<br>";
}
}//end for
}
}//end for
}
Bookmarks