Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/09/2007, 14:58
Avatar de sheshu
sheshu
 
Fecha de Ingreso: abril-2006
Ubicación: En too el medio
Mensajes: 160
Antigüedad: 18 años
Puntos: 0
Re: Lectura desde Flash de datos XML no funciona bien.

hola,
para acceder a los datos de las noticias tienes que hacer algo así:
Código:
noticias.onLoad = function(exito) {
   if (exito) {
      // de momento solo le hago un trace 
      var array_temp=this.firstChild.childNodes;
      for(var k=0;k<array_temp.length;k++){
        trace("inicio noticia");
        trace("id: " + array_temp[k].attributes.id);
        trace("titulo: " + array_temp[k].attributes.titulo);
        trace("contenido: " + array_temp[k].attributes.contenido);
        trace("fin noticia");
      }
   } else trace("No se pudo cargar XML de noticias");
};
o puede ser algún tema del header del php
espero que te ayude, un saludo,

sheshu
__________________
sheshu ::: www.tutoriales-flash.com