come prima cosa dai un nome istanza alle scritte (esempio "scritta1_mc")
poi puoi usare questa prototype che sposta il mc e agisce sull'opacità:
poi la richiami così:codice://Prototype muovi e alfa MovieClip.prototype.move = function(initAlfa, endAlfa, endX, endY, endScale, speed) { this._alpha = initAlfa; this.onEnterFrame = function() { var offset = 0.5; var ralfa = Math.abs(endAlfa-this._alpha); var rx = Math.abs(endX-this._x); var ry = Math.abs(endY-this._y); var rscale = Math.abs(endScale-this._xscale); //Muovo il mc finche nn raggiunge la sua posizione finale e lo scalaggio desiderato if (!(ralfa<offset) || (!(rx<=offset)) || (!(ry<=offset)) || (!(rscale<=offset))) { var dalfa = Math.ceil(ralfa/speed); var dx = rx/speed; var dy = ry/speed; (this._alpha<endAlfa) ? this._alpha += dalfa : this._alpha -= dalfa; (this._x<endX) ? this._x += dx : this._x -= dx; (this._y<endY) ? this._y += dy : this._y -= dy; (this._xscale<endScale) ? (this._xscale=this._yscale += rscale/speed) : (this._xscale=this._yscale -= rscale/speed); } else { //A spostamento completato e scalaggio desiderato elimino l'enterframe delete this.onEnterFrame; } }; };
codice:scritta1_mc.move(0, 100, 200, 170, 100, 5);

Rispondi quotando