MovieClip.prototype.fade = function(fadeIn, speed, maxMinAlpha) { if (fadeIn == null) { fadeIn = true; } if (maxMinAlpha<1 || maxMinAlpha == null) { maxMinAlpha = 1; } if (speed == null) { speed = 1; } if (fadeIn) { this.posNeg = 1; } else { this.posNeg = -1; } this.fadeInOut = speed*this.posNeg; this._alpha -= this.fadeInOut; this.myAlpha = this._alpha; if (fadeIn) { if (this.myAlphamaxMinAlpha) { this.makeFade = false; } } }; this.fade(true,1,150); this.makeFade = true; tester_mc.loadMovie("panaroma.swf");