# Delaying with tween class

**URL:** <https://forum.kirupa.com/t/delaying-with-tween-class/219310>\
**Category:** Uncategorized\
**Created:** [March 15, 2007, 4:30pm UTC](https://forum.kirupa.com/t/delaying-with-tween-class/219310 "2007-03-15T16:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosmicloverocks](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@cosmicloverocks](https://forum.kirupa.com/u/cosmicloverocks)\
**Post date:** [March 15, 2007, 4:30pm UTC](https://forum.kirupa.com/t/delaying-with-tween-class/219310/1 "2007-03-15T16:30:28Z")

</div>

i have 5 moviecip in the stage and i am scaling them to 100% i would like to delay each one so let say first one animate when reach 50% the next movieclip start growing an so on …

i have this code :

```auto
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
var speed:Number = 80;
var textClip:Array = ["textclip1", "textclip2", "textclip3", "textclip4", "textclip5", "textclip6"];
function growText1() {
    var textWidth = new Tween(this["textclip"+i], "_xscale", Strong.easeOut, this["textclip"+i]._xscale, 400, speed);
    var textHeight = new Tween(this["textclip"+i], "_yscale", Strong.easeOut, this["textclip"+i]._yscale, 400, speed);
}
function changeOfSpeed() {
    speed = 10;
}
this.onEnterFrame = function() {
    var speedID = setInterval(changeOfSpeed, 500);
};
for (var i:Number = 0; i<textClip.length+1; i++) {
    this["textclip"+i]._xscale = 0;
    this["textclip"+i]._yscale = 0;
        var textWidth = new Tween(this["textclip"+i], "_xscale", Strong.easeOut, this["textclip"+i]._xscale, 400, speed*i);
    var textHeight = new Tween(this["textclip"+i], "_yscale", Strong.easeOut, this["textclip"+i]._yscale, 400, speed*i);
}

```
