Aqui te dejo casi todo el codigo.
Lo que hace es cargar todos los nicks, de los usuarios registrados, cargandolos desde un xml. Todo funciona perfecto en flashplayer 6 pero en flash player 7 no me funciona. En vez de salirme los nicks me sale undefined, undefined, undefined.... Como lo podría solucionar?
Código :
datos_agenda = new XML();
datos_agenda.ignoreWhite = 1;
datos_agenda.onLoad = function(exito) {
if (exito) {
var texto_noticias = "";
var raiz = this.firstChild;
var hijos = this.firstChild.childNodes.length;
if (hijos != 0) {
for (var n = 0; n<hijos; n++) {
texto_noticias += ("");
for (var m = 0; m<raiz.childNodes[n].childNodes.length; m++) {
texto_noticias += ("<a href='asfunction:obtenerDetalle,"+raiz.childNodes[n].childNodes[m].attributes.id+"---"+raiz.childNodes[n].childNodes[m].attributes.nick+"---"+raiz.childNodes[n].childNodes[m].attributes.foto+"'>"+compruebatexto(raiz.childNodes[n].childNodes[m].attributes.nick)+"</a><br>");
}
if (n<hijos-1) {
texto_noticias += "";
}
}
noticias.htmlText = texto_noticias;
} else {
noticias.text = "No hay usuarios.";
}
} else {
noticias.htmlText = "<b>Error al cargar los datos</b>";
}
};
datos_agenda.load("agenda2.xml?rn="+new Date().getTime());