# Help with trying to chain together tweens

**URL:** https://forum.kirupa.com/t/help-with-trying-to-chain-together-tweens/238848
**Category:** Uncategorized
**Created:** [September 16, 2007, 5:51am UTC](https://forum.kirupa.com/t/help-with-trying-to-chain-together-tweens/238848 "2007-09-16T05:51:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)
#### Post date: [September 16, 2007, 5:51am UTC](https://forum.kirupa.com/t/help-with-trying-to-chain-together-tweens/238848/1 "2007-09-16T05:51:08Z")

</div>

Hello folks,

I’m trying to figure out how to use actionscript to start a new tween upon the completion of a prior tween. For example, say I want to make a movie clip tween in width, and when it’s completed tweening width, then tween its height…

I’ve figured out importing the classes and using this method to tween:

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

var twWidth:Tween = new Tween(mcBG, "_width", Elastic.easeOut, mcBG._width, 300, 2, true);

```

And then I’ve read about creating this listener to get a flag on the completion of a tween:

```auto

var oListener:Object = new Object();

oListener.onMotionFinished = function(twObject:Tween):Void {
//***do some action, ie, call a function to run the next tween, etc...
 }

twWidth.addListener(oListener);

```

But there must be an easier way to chain together tweens…to find out when one tween ends to begin another…my attempt doesn’t seem too efficient…how are you smartypants doing it?

Thanks!
