function loadXML(loaded) {
if (loaded) {
var xnRootNode:XMLNode = this;
trace( xnRootNode );
// number on buttons
nTotalButtons = xnRootNode.firstChild.childNodes.length;
// fill arrays
for (var i = 0; i<nTotalButtons; i++) {
astrImages.push(xnRootNode.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue);
astrText.push(xnRootNode.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue);
astrLinks.push(xnRootNode.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue);
}
// everthing is loaded; we can move on
gotoAndStop(3);
}
}