Mi daresti una mano ad integrare il mio codice con il tuo? Io ho fatto così ma mi da errore
codice:
global_xml.onLoad = function(success) {
if (success) {
processXML();
}
};
global_xml.load('tuo.xml');
processXML= function(ElaboraXMLT);
ElaboraXMLT();
function ElaboraXMLT(success) {
if (mioxmlA.loaded) {
strPartita1 = new Array();
strPartita2 = new Array();
strRisultati1 = new Array();
strRisultati2 = new Array();
myarrayA = mioxmlA.firstChild.childNodes;
for (i=0;i<=myarrayA.length;i++){
if (myarrayA[i].nodeName == "partitaData"){
strY = 32;
strDataT = myarrayA[i].attributes.strData;
strPartita1[i] = myarrayA[i].childNodes[0].childNodes.toString();
strPartita2[i] = myarrayA[i].childNodes[1].childNodes.toString();
strRisultati1[i] = myarrayA[i].childNodes[2].childNodes.toString();//Recupero i tel
strRisultati2[i] = myarrayA[i].childNodes[3].childNodes.toString();//Recupero i www
_root.idxPartite.duplicateMovieClip ("idxP"+i, i);
setProperty(_root["idxP"+i], _x, (3,6));
setProperty(_root["idxP"+i], _y, (strY+(20*i)));
_root["idxP"+i].nomiSquadre1.text = strPartita1[i]+" - "+strPartita2[i];
_root["idxP"+i].risultatiSquadre1.text = strRisultati1[i]+" - "+strRisultati2[i];
_root.giornata.text = strDataT+"° Giornata";
//strProfondita = _root["idxP"+i].getDepth();
//prova.text = (strProfondita+1);
//FondoClip.swapDepths(10);
}
}
}else {
_root.nomiSquadre1.text = "errore";
}
}
stop();