Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/07/2007, 11:05
Rizzo
 
Fecha de Ingreso: septiembre-2006
Mensajes: 1.193
Antigüedad: 17 años, 7 meses
Puntos: 30
Re: Ayuda con firstChild...

no funciona ya que no tiene un controlador de eventos que este avisando cuando ya cargo el xml y por que no pones atributos.

Código:
var info:XML = new XML();

info.ignoreWhite = true;

System.useCodepage = true;



info.load("lista.xml");

info.onLoad = function(exito) {
	
	nodes = info.firstChild.childNodes[0].attributes.idnoticia;

trace(nodes);
	
};
el xml deberia ser asi :
Código:
<mixml>
<noticia idnoticia="147" imagen="noticias/archivos/1173957985.jpg" />
<noticia idnoticia="146" imagen="noticias/archivos/1173957986.jpg" />
<mixml/>
si quieres mas ayuda aprieta f1 en flash.