# Ordering Tweens?

**URL:** https://forum.kirupa.com/t/ordering-tweens/252813
**Category:** flash
**Created:** [February 23, 2008, 10:22pm UTC](https://forum.kirupa.com/t/ordering-tweens/252813 "2008-02-23T22:22:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![your\_syndrome](https://avatars.discourse-cdn.com/v4/letter/y/f04885/32.png) [@your\_syndrome](https://forum.kirupa.com/u/your_syndrome)
#### Post date: [February 23, 2008, 10:22pm UTC](https://forum.kirupa.com/t/ordering-tweens/252813/1 "2008-02-23T22:22:06Z")

</div>

Hey,

I’m using the inbuilt tweens in flash…

```auto

var bodyScaleX:Tween = new Tween(bodyBack, "_xscale", Strong.easeOut, 0, 100, 0.5, true); 
    //BRINGS THE BLACK BOX DOWN THE Y AXIS 
    bodyScaleX.onMotionFinished = function () { 
        var bodyScaleY:Tween = new Tween(bodyBack, "_yscale", Strong.easeOut, bodyBack._yscale, 100, 1, true); 
    } 
    bodyScaleY.onMotionFinished = function () { 
        trace ("it worked"); 
    }

```

But for some reason the second

```auto
 bodyScaleY.onMotionFinished = function () { 
        trace ("it worked"); 
    }

```

Doesn’t work, it can’t pick up - var bodyScaleY:Tween - inside the funtion above?
