Foros del Web » Creando para Internet » Flash y Actionscript »

Agregar precargador a imagenes traidas desde xml

Estas en el tema de Agregar precargador a imagenes traidas desde xml en el foro de Flash y Actionscript en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 23/06/2009, 01:44
 
Fecha de Ingreso: noviembre-2008
Mensajes: 67
Antigüedad: 15 años, 5 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);

}
  #2 (permalink)  
Antiguo 23/06/2009, 05:39
 
Fecha de Ingreso: septiembre-2008
Mensajes: 14
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: Agregar precargador a imagenes traidas desde xml

Hola Vanditsession:

¿Has probado esto a ver que tal?

Código PHP:
mc.loadMovie(clip+".jpg"); 
  #3 (permalink)  
Antiguo 23/06/2009, 22:06
 
Fecha de Ingreso: noviembre-2008
Mensajes: 67
Antigüedad: 15 años, 5 meses
Puntos: 1
Respuesta: Agregar precargador a imagenes traidas desde xml

Pero que diferencia tendria con lo que estoy haciendo, es decir necesito un barrita o algo que actue como precargador mientras aparece la imagene que traigo desde el xml. Gracias.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:31.