Ciao a tutti:
Ho una tween che ha il seguente codice actionscript
codice:
MovieClip.prototype.fadeOff = function(__alphaIniziale,__alpha) {
var mov:Object = new Tween(this, "_alpha", Strong.easeOut, __alphaIniziale, __alpha, 10, false);
mov.onMotionFinished = function():Void
{
this._visible = false;
trace(this)
}
}
Nell' onMotionFinished non mi funziona il this .
Io vorrei che il movieclip a cui applico la tween, alla fine sia tolta dallo stage con visible = false. Ma il this in questione non mi restituisce il target che mi serve per applicare l' _visible = false.
Se faccio trace(this) mi risulta [Tween] sulla finestra di output.
Come mai?Cosa sbaglio?
Grazie a tutti!