[FONT=carrois gothic][/FONT][FONT=carrois gothic]Dear team, I am beginner in object programming, which I learn through Action Script 2.0 in Flash and have problem with not responding event handler for Tween class.
My cod is: import mx.transitions.Tween;
import mx.transitions.easing.*;
var myHoriTween:Tween = new Tween (ball_mc,"_x",None.easeNone,0,400,2,true);
myHoriTween.addListener(HoriTween);
HoriTween.onMotionFinished = function (){
this.yoyo();
trace(“Usao u kod”)
}
I have opened Class Tween and added the cod:
function onMotionFinished ():Void {
if (this.time = this._duration) {
this.broadcastMessage (“onMotionFinished”, this);
}
};
Certainly, I make some mistake, but what? Thank you for reading, your Bhoyanich Ghoran.[/FONT]