Salve a tutti,
mi trovo ad avere uno script che mi genera dinamicamente i tasti, questi tasti hanno dei listener per il mouse over e il mouse out che fanno tweenare in alto il testo al loro interno così:

Code:
function onMouseOver(event:MouseEvent) {

var finish_y:Number = event.currentTarget.testo_base.y-event.currentTarget.testo_base.height;
	var start_y:Number = event.currentTarget.testo_base.y;
	var duration:Number = .1;
	var myTween:Tween = new Tween(event.currentTarget.testo_base, "y", None.easeOut, start_y, finish_y, duration, true);
	event.currentTarget.bottone_base.gotoAndPlay("action");
	event.currentTarget.testo_base.gotoAndPlay("action");
Il mio problema però è che se esco e torno sopra velocemente col mouse il tween non fa ora a finire che mi manda ancora piu su o piu giu tale testo, mi sono riproposto allora di creare delle funzioni che mi disabilitino il bottone finchè il tween non è finito, così:

Code:
		function onMotionStart(event:TweenEvent):void {
			mouseChildren = false;
		}

		function onMotionFinished(event:TweenEvent):void {
			container.mouseChildren = true;
		}
		myTween.addEventListener(TweenEvent.MOTION_START, onMotionStart)
		myTween.addEventListener(TweenEvent.MOTION_FINISH, onMotionFinished)
Il fatto è che non riesco a dargli il percorso del bottone perchè se prima di mouse children aggiungo event.currentTarget ovviamente mi dice che non posso far fare quell'azione al tweening visto che nella dichiarazione della funzione passo quell'evento...
Aiuto pleaseeee