# Tween events with problems?

**URL:** <https://forum.kirupa.com/t/tween-events-with-problems/250482>\
**Category:** flash\
**Created:** [January 29, 2008, 10:49pm UTC](https://forum.kirupa.com/t/tween-events-with-problems/250482 "2008-01-29T22:49:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonardoZimbres](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leonardozimbres/32/4035_2.png) [@LeonardoZimbres](https://forum.kirupa.com/u/LeonardoZimbres)\
**Post date:** [January 29, 2008, 10:49pm UTC](https://forum.kirupa.com/t/tween-events-with-problems/250482/1 "2008-01-29T22:49:53Z")

</div>

Hello again Kirupa Forum!

I want to ask if anyone else had the same problem… the effects that uses the tween class sometimes go wrong. Heres an example:

[SIZE=2][COLOR=DimGray]import fl.transitions.Tween;  
import fl.transitions.easing.\*;  
import fl.transitions.TweenEvent;

var iTween2:Tween;  
iTween2 = new Tween(cartao, “y”, Regular.easeOut, cartao.y, z\*calculate\_height(main\_menu.length), 1, true);[/COLOR][/SIZE]

It works, but sometimes, something around 1 chance in 25, the animation finishes in an undesired position. Someone knows why?
