This is an _alpha property changer for movieclips that can appear or disapper them smoothly.
Example:
my_Mc.appear();
my_Mc.disappear();
//@Created By Eser Yogurtcu MovieClip.prototype.appear = function() { this.onEnterFrame = function() { if (this._alpha < 101) { this._alpha += 8; } else { delete this.onEnterFrame; } }; }; MovieClip.prototype.disappear = function() { this.onEnterFrame = function() { if (this._alpha > -1) { this._alpha -= 8; } else { delete this.onEnterFrame; } }; };
Leave a reply