Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/07/2008, 02:42
kaquna
 
Fecha de Ingreso: agosto-2007
Mensajes: 130
Antigüedad: 16 años, 8 meses
Puntos: 0
cargador de noticias

hola a tod@s

estoy preparando un cargador de noticias en el que cuando se pulse en una de las noticias cambie la imagen. el codigo es el siguiente:

Código:
miXML = new XML();
miXML.ignoreWhite = true;

noticias.comentario_txt0.html = true;

miXML.load("noticias.xml");
miXML.ref = this;
miXML.onLoad = function(succes) {
   if (succes) {
      aNoticias = this.firstChild.childNodes;
      vTotal = aNoticias.length;
      for (var i = 0; i<vTotal; i++) {
         noticias.duplicateMovieClip("noticias"+i,i+1,{_x:18, _y:i*180});
         this.ref["noticias"+i].titulo_txt0.text = myXML.firstChild.childNodes[i].attributes.titulo;
         this.ref["noticias"+i].comentario_txt0.htmlText = myXML.firstChild.childNodes[i].attributes.comentario;
         this.ref["noticias"+i].onRelease = function() {
            _parent._parent.mc_image.loadMovie("image"+i+".jpg");
         };
      }

   }
};
stop();

pero el problema es que siempre me carga la ultima imagen. aparentemente el codigo esta bien... no?

una ayudita, porfavore