Ciao a tutti!
Allora, io carico delle news che cambiano in un campo di testo tramite questo script:
codice:
ApriXml();
function ApriXML() {
mioxml = new XML();
notizie = new Array();
arraynews = new Array();
mioxml.load('news.xml');
mioxml.onLoad = ParseXML;
function ParseXML(success) {
if (success) {
notizie = new Array();
notizie = mioxml.childNodes;
for (i=0; i<notizie.length; i++) {
if (notizie[i].childNodes.toString() != "") {
arraynews.push(notizie[i].childNodes.toString());
}
}
_root.Clipnews.news.testonews = arraynews[0];
}
}
}
Però mi dà sempre errore di undefined nel campo di testo come risultato..cosè che sbaglio??
Grazie per la vostra immensa sagezza!