Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/12/2006, 14:25
Avatar de Fotohuella
Fotohuella
 
Fecha de Ingreso: diciembre-2006
Ubicación: Medellin - Colombia
Mensajes: 10
Antigüedad: 17 años, 4 meses
Puntos: 0
Re: precarga animada?

Este el codigo que siempre utilizo para todas mis pregargas:

Cita:
function cargando() {
var total, cargados, porcentaje;
total = _root.getBytesTotal();
cargados = _root.getBytesLoaded();
porcentaje = Math.floor((cargados*100)/total);
porcentaje_txt.text = porcentaje + " / 100";
barra_mc.gotoAndStop(porcentaje);
if (cargados == total) {
clearInterval(hiloPrecarga);
gotoAndStop("pagina", 1);
}
}
var hiloPrecarga = setInterval(cargando, 1);
stop();