# Tween stops unexpectedly

**URL:** https://forum.kirupa.com/t/tween-stops-unexpectedly/228663
**Category:** flash
**Created:** [June 10, 2007, 9:39am UTC](https://forum.kirupa.com/t/tween-stops-unexpectedly/228663 "2007-06-10T09:39:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![StarXploser](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/starxploser/32/875_2.png) [@StarXploser](https://forum.kirupa.com/u/StarXploser)
#### Post date: [June 10, 2007, 9:39am UTC](https://forum.kirupa.com/t/tween-stops-unexpectedly/228663/1 "2007-06-10T09:39:22Z")

</div>

I’m relying heavily on fl.transition.Tween to do a few things in the site i’m working on.  
Very randomly, tweens stop in the middle of a transition.  
I traced the y variable in expandRetractContent() which is called on MOTION\_CHANGE and it looks good the whole time. Then, the tween just stops. I have to replay the movie a few times to get it to happen. I’d say it does it 1 out of 5 times. Is this a known issue? Or am I doing something wrong?

Here’s the code.

```php

var tween:Tween = new Tween(this.dummyTween, "y", Regular.easeOut, this.cbox_h, this.loadBoxHeight, 1, true);
tween.addEventListener(TweenEvent.MOTION_CHANGE, expandRetractContent);
tween.addEventListener(TweenEvent.MOTION_FINISH, loadSectionHandler);

//MOTION_FINISH is never triggered  
//tried to see if MOTION_STOP was being triggered but it's not
//tween.addEventListener(TweenEvent.MOTION_STOP,why);

```
