# Event handler in as 2.0 Flash do not respond

**URL:** <https://forum.kirupa.com/t/event-handler-in-as-2-0-flash-do-not-respond/330954>\
**Category:** Uncategorized\
**Created:** [April 16, 2013, 5:09pm UTC](https://forum.kirupa.com/t/event-handler-in-as-2-0-flash-do-not-respond/330954 "2013-04-16T17:09:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bojanic\_g](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@bojanic\_g](https://forum.kirupa.com/u/bojanic_g)\
**Post date:** [April 16, 2013, 5:09pm UTC](https://forum.kirupa.com/t/event-handler-in-as-2-0-flash-do-not-respond/330954/1 "2013-04-16T17:09:16Z")

</div>

[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]
