Foros del Web » Creando para Internet » Flash y Actionscript »

Problemas con XML y flash

Estas en el tema de Problemas con XML y flash en el foro de Flash y Actionscript en Foros del Web. 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(); ...
  #1 (permalink)  
Antiguo 13/08/2008, 21:29
 
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!
  #2 (permalink)  
Antiguo 16/08/2008, 23:36
 
Fecha de Ingreso: julio-2008
Mensajes: 9
Antigüedad: 15 años, 9 meses
Puntos: 0
Respuesta: Problemas con XML y flash

no conoces la condicion "for"...
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:13.