Puoi fare così, ma non ho un esempio pronto
crei un movieclip
frame1 verde frame 10 rosso per es. e gli crei la tua animazione poi lo istanzi myMC
poi sul frame applichi questa proto
codice:MovieClip.prototype.rollScratch = function() { this.onRollOver = function() { this.onEnterFrame = function() { if( this._currentframe < this._totalframes ) { this.gotoAndStop( ++this._currentframe ); } else { delete this.onEnterFrame; } } } this.onRollOut = this.onReleaseOutside = function() { this.onEnterFrame = function() { if( this._currentframe > 1 ) { this.gotoAndStop( --this._currentframe ); } else { delete this.onEnterFrame; } } } } //richiami la proto così per ogni istanza dei tuoi pulsanti myMC.gotoAndStop(1); myMC.rollScratch();

Rispondi quotando