Tema: Carga de XML
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2007, 12:15
Avatar de gagarin
gagarin
 
Fecha de Ingreso: enero-2002
Ubicación: Madrid
Mensajes: 550
Antigüedad: 22 años, 3 meses
Puntos: 4
Carga de XML

Tengo esto:
Código:
stop();

function ini() {
	trace("cargado");
	trace(obj_xml.firstChild.childNodes[0].firstChild.nodeValue);
	nextFrame();
}
var obj_xml:XML = new XML();
obj_xml.load("menu.xml");
obj_xml.onLoad = ini;
obj_xml.ignoreWhite = true;


asunto_txt.text = obj_xml.firstChild.childNodes[0].firstChild.nodeValue;

destino_txt.text = obj_xml.firstChild.childNodes[1].firstChild.nodeValue;

cuerpo_txt.text = obj_xml.firstChild.childNodes[2].firstChild.nodeValue;

remitente_txt.text = obj_xml.firstChild.childNodes[3].firstChild.nodeValue;
Y en mi escenario tengo los campos de texto dinámico con los nombres y todo en orden, el trace me avienta los datos que tengo en mi XML pero al asignarlos a los campos de texto me aparece como undifened, POR QUÉ?