# Galery

**URL:** https://forum.kirupa.com/t/galery/54775
**Category:** flash
**Created:** [June 17, 2004, 1:29pm UTC](https://forum.kirupa.com/t/galery/54775 "2004-06-17T13:29:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![miniyo](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@miniyo](https://forum.kirupa.com/u/miniyo)
#### Post date: [June 17, 2004, 1:29pm UTC](https://forum.kirupa.com/t/galery/54775/1 "2004-06-17T13:29:26Z")

</div>

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.

```auto

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
