Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/06/2009, 01:44
vanditsession
 
Fecha de Ingreso: noviembre-2008
Mensajes: 67
Antigüedad: 15 años, 6 meses
Puntos: 1
Pregunta Agregar precargador a imagenes traidas desde xml

Consulta tengo el siguiente codigo en As y necesito agregar un precargador en los clips que traen las imagenes

_root.pantalla_mc.loadMovie(imagen0);
_root.pantalla_mc1.loadMovie(imagen1);


he intentado algunas cosas pero no tuve suerte alguien puede ayudarme muchas gracias.



System.useCodepage = true;
var indice:Number;
var noticias_xml:XML;


function cargarDatos(_indice:Number){

var titulo:String;
var mensaje:String;
var imagen0:String;
var imagen1:String;


titulo = noticias_xml.firstChild.childNodes[_indice].firstChild.firstChild.nodeValue;
mensaje = noticias_xml.firstChild.childNodes[_indice].firstChild.nextSibling.firstChild.nodeValue
imagen1 = noticias_xml.firstChild.childNodes[_indice].firstChild.nextSibling.nextSibling.firstChild.nod eValue
imagen0 = noticias_xml.firstChild.childNodes[_indice].lastChild.firstChild.nodeValue


_root.titulo_txt.loadMovie(titulo);
_root.mensaje_txt.htmlText = mensaje;

_root.pantalla_mc.loadMovie(imagen0);
_root.pantalla_mc1.loadMovie(imagen1);

}




indice=0;

noticias_xml = new XML();
noticias_xml.ignoreWhite = true;
noticias_xml.load("noticias.xml);
noticias_xml.onLoad = function(){

cargarDatos(indice);

}