Ciao a tutti.
Usando le classi ho creato un prototype per apllicare TWEEN, ma vorrei che alla fine della tween, il movieclip, a cui applico tale prototype, mi scompaia dallo stage.

Io ho usato il seguente codice:

MovieClip.prototype.fadeOff = function(__alpha)
{
var mov:Object = new Tween(this, "_alpha", Regular.easeOut, this._alpha, __alpha, 0.5, true);
mov.onMotionFinished = function():Void {
this._visible = false;
};
}

E' sintatticamente giusto?!