Tween Class

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:

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

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


_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.