stop();
//
//
path = this;
function loadXML(success) {
if (success) {
xmlNode = this.firstChild.childNodes;
for (i=0; i<xmlNode.length; i++) {
var img = xmlNode*.childNodes[0].nodeValue;//Math.random();
container.loadMovie(img);
}
}
}
var news_xml = new XML();
news_xml.ignoreWhite = true;
news_xml.onLoad = loadXML;
news_xml.load("headers.xml");
I it to randomly pick one of the childNodes and display it in the container. I tried to place in a Math.random(); but I wasn’t sure where to put it.