ciao a tutti,

sto cercando di creare una funzione per centrare delle clip nello stage utilizzando le tween

ma non riesco a farle funzionare o meglio senza le tween funziona...

prendo spunto daquesto articolo http://www.v2online.it/articoli/easing-functions.html

codice:
function centra(___MC___, aum_x, aum_y){
	// fin qui va bene
	___MC___._x = Math.floor(Stage.width / 2) - ___MC___._width / 2 + (aum_x);
	___MC___._y = Math.floor(Stage.height / 2)- ___MC___._height / 2 + (aum_y);
	
	//ma se volessi applicare una transazione....!?!?
	var ___TWEEN___:Tween = new Tween(___MC___, "_x", Elastic.easeIn, ___MC___._x, ___MC___, 50, false);
	var tweenListener:Object = new Object();
	tweenListener.onMotionFinished = function():Void  {
		//trace(___MC___ + " ha finito");
	};
	___TWEEN___.addListener(tweenListener);
};

grazie mille