Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/08/2008, 21:29
poch911
 
Fecha de Ingreso: mayo-2008
Mensajes: 10
Antigüedad: 15 años, 11 meses
Puntos: 0
Problemas con XML y flash

Hola! Estoy tratando de cargar en un Flsh los datos de un archivo xml... ¿me podrían decir si mi script está bien??? Plis!!!

Cita:
stop();
var obj_xml:XML = new XML();
obj_xml.ignoreWhite = true;
obj.xml.load("tbgen.xml");
obj_xml.load = function (exito) {
if (exito) {
uno_txt.text = obj_xml.firstChild.childNodes[0].firstChild.nodeValue;
dos_txt.text = obj_xml.firstChild.childNodes[1].firstChild.nodeValue;
tres_txt.text = obj_xml.firstChild.childNodes[2].firstChild.nodeValue;
cuatro_txt.text = obj_xml.firstChild.childNodes[3].firstChild.nodeValue;
cinco_txt.text = obj_xml.firstChild.childNodes[4].firstChild.nodeValue;
seis_txt.text = obj_xml.firstChild.childNodes[5].firstChild.nodeValue;
siete_txt.text = obj_xml.firstChild.childNodes[6].firstChild.nodeValue;
ocho_txt.text = obj_xml.firstChild.childNodes[7].firstChild.nodeValue;
nueve_txt.text = obj_xml.firstChild.childNodes[8].firstChild.nodeValue;
}
}
A la hora de ejecutar el swf... no se ve nada... está en blanco... HELP!