holas
 
Estoy realizando una galeria de imagenes en flash y este es mi script
 
this.carpeta="img/";
this.array=["image1.jpg", "image2.jpg"];
this.indice=0;
 
 
MovieClip.prototype.cambio = function(n) {
             this.indice=n;
	this.onEnterFrame = fadeOut;
 
	};
 
MovieClip.prototype.fadeOut = function() {
		if (this.era._alpha>20) {
		this.era._alpha=this.era._alpha-20;
	    } 
	else {
		this.cargarPhoto();
	}
	};
MovieClip.prototype.cargarPhoto = function() {
 
	loadMovie(this.carpeta+this.array[this.indice],_root.era);
	};
 
 Lo que quiero es un efecto de fade de plomo a blanco, y que cuando este en blanco(alpha=0) carge la foto, pero por alguna razón el valor de variable n o bien el this.indice, no llega a la funcion cargarPhoto, o bueno es es lo que pienso, si peuden encontrar algun otro error espero puedan ayudarme.
 
gracias por su atencion.
 
Hats 
  
 
