Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/07/2006, 05:01
Operadormail
 
Fecha de Ingreso: junio-2003
Mensajes: 778
Antigüedad: 20 años, 10 meses
Puntos: 1
Cargar imagen con alpha

Hola a todos

Tengo el siguiente código para cargar una imagen desde alpha=0 hasta alpha=100

Código:
this.createEmptyMovieClip("img_mc", ++nivel);
img_mc._x = 0;
img_mc._y = 0;
img_mc._alpha=0;
img_mc.loadMovie("fauna.jpg");
this.createEmptyMovieClip("bucle_mc", ++nivel);
bucle_mc.onEnterFrame = function() {
	if (por != 100) {
		por = Math.round((img_mc.getBytesLoaded()/img_mc.getBytesTotal())*100);
		por_txt.text = "Cargandos :"+(Math.round(img_mc.getBytesLoaded()/1024))+" Kb de "+(Math.round(img_mc.getBytesTotal()/1024))+" Kb "+por+" % terminado";
	} else {
		if (img_mc._alpha<100) {
		img_mc._alpha +=3;
		}
	}
};
Pero no me funciona... alguna sugerencia???