Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/05/2007, 11:35
creativosdolmen
 
Fecha de Ingreso: mayo-2007
Mensajes: 11
Antigüedad: 16 años, 11 meses
Puntos: 0
Re: Problema con precarga en flash

Aquí está el código de la precarga:

Código:
function cargando() {
	var total, cargados, porcentaje;
	total = _root.getBytesTotal();
	cargados = _root.getBytesLoaded();
	porcentaje = Math.floor((cargados*100)/total);
	porcentaje_txt.text = porcentaje+" %";
	barra_mc.gotoAndStop(porcentaje);
	if (cargados == total) {
		clearInterval(hiloPrecarga);
		play();
	}
}

var hiloPrecarga = setInterval(cargando, 1);

stop();
A ver si entre todos conseguimos arreglarlo