I want to show a photo galery in a photographer´s web site. I´m usinf the following code to change transparency to the mc’ s.
MovieClip.prototype.alfa = function(alf, vel) {
// --
if (arguments.length<2) {
trace("número de parámetros erróneo");
return;
}
this.vel = vel;
this.alfax = alf;
// --
this.onEnterFrame = function() {
trace(this._alpha);
this._alpha = (this.alfax+this.vel*this._alpha)/(this.vel+1);
// -- ajuste exacto
if (Math.abs(Math.round(this._alpha)-this.alfax) == this.vel) {
this._alpha = this.alfax;
trace("finalizado")
delete this.onEnterFrame;
}
};
};
// -- uso
mc_miclip.alfa(80, 2);
But this script just modify the property of the clip i´ve assigned , but the problem is tha i will not know which picture will be on screen at that moment . So ,that´s my question. How can i assign _alpha to 0 to the picture that will be replaced for the next one ?
Regards