sì, scusa... l'ho scritto un po' di fretta e non l'ho ricontrollato, così dovrebbe andare
codice:MovieClip.prototype.alphaControl = function(bool){ if(bool){ this.onEnterFrame = function(){ if(this._alpha > 0){ this._alpha -= 10; } else { delete this.onEnterFrame; } } } else { if (this._alpha<=0) { this._alpha +=10 } else if (this._alpha>=100) { delete this.onEnterFrame; } } } var mcs = new Array("homemc", "contactsmc", "teammc", "creditsmc", "storemc"); _root.workin.buttlinksmc.buttmc.storebutt.onRelease = function() { _root.workin.homemc.stop(); for (var i = 0; i < mcs.length; i++){ if(mcs[i] != "storemc"){ _root.workin[mcs[i]].alphaControl(true); } else { _root.workin[mcs[i]].alphaControl(false); } } }

Rispondi quotando