# Tween Class

**URL:** https://forum.kirupa.com/t/tween-class/202119
**Category:** Uncategorized
**Created:** [September 27, 2006, 10:04pm UTC](https://forum.kirupa.com/t/tween-class/202119 "2006-09-27T22:04:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![simpleSoft](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@simpleSoft](https://forum.kirupa.com/u/simpleSoft)
#### Post date: [September 27, 2006, 10:04pm UTC](https://forum.kirupa.com/t/tween-class/202119/1 "2006-09-27T22:04:46Z")

</div>

I don’t know how many of you out their use the Tween class in Flash 8; however today I found something that is great. It _ **does** _ support Events despite the fact that it is completely undocumented on the LiveDocs and such.

To get it to work all you need to do is this:

```auto

import mx.transitions.Tween;
import mx.transitions.easing.*;

//Declare new tween
tweenWidth = new Tween(BoundingBox, "_width", None.easeNone, 0, targetWidth, 1, true);

tweenWidth.addListener(_root);

_root.onMotionChanged = function() {
     //Do something now that the tween
     //has done something
}

```

Just thought I’d document this somewhere where others might use this. If anyone has any questions or needs some help let me know.

Best,  
Ryan:)
