Mi problem es es siguiente estoy haciendo un reproductor mp3 q carga en una lista los ficheros mp3 q tengo en un directorio y kiero utilizar xml para ello.
tengo un php k escribe un documento xml con las canciones q ahi en dicho diretorio y lo saca asi:
<mp3>
<cancion>El Universo sobre mi.mp3</cancion>
</mp3>
aki no esta problem, el problem esta en a.s. cuando utilizo esto:
Código :
function Cargar(){
var cnx:LoadVars = new LoadVars();
var xml:XML = new XML();
cnx.onLoad = function(ok) {
if (ok) {
total = cnx.total;
songs = new Array(total);
}
};
xml.onLoad = function(ok) {
if (ok) {
for(i=0;i<=total;i++) {
songs[i] = xml.firstChild.childNodes[i].nodeValue;
if (lista.text == "") {
menu.lista.text = songs[i];
}
else {
menu.lista.text += "\n";
menu.lista.text += songs[i];
}
}
}
};
cnx.load("music.php");
xml.load("music.xml");
total = -1;
}
se keda colgao y no se xq :? y me anula el script flash
gracias por vuestra ayuda 