# Check all tweens have stopped

**URL:** <https://forum.kirupa.com/t/check-all-tweens-have-stopped/224435>\
**Category:** Uncategorized\
**Created:** [May 2, 2007, 12:50pm UTC](https://forum.kirupa.com/t/check-all-tweens-have-stopped/224435 "2007-05-02T12:50:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shellbryson](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@shellbryson](https://forum.kirupa.com/u/shellbryson)\
**Post date:** [May 2, 2007, 12:50pm UTC](https://forum.kirupa.com/t/check-all-tweens-have-stopped/224435/1 "2007-05-02T12:50:15Z")

</div>

Hi guys,

Is there a simple way to check all tweens are complete? The tweens kicked off in the code below work great, but I have another sequence that needs to kick off only when all tweens are done.

Alternatively, is there are smart way to time things to execute only after X number of seconds without having to attach code to the root onEnterFrame?

```auto

for (var i=0; i <= 15; i++) {
        identID = "ident" + i;
        var tempgrid = grid_mc.attachMovie("ident_proto", identID, grid_mc.getNextHighestDepth());

        tempgrid.title_txt.text = bbName*;
        
        if (gridCol > 3) {
            gridCol = 0;
            gridRow++;
        }
        
        // add grid layout x/y to the an array
        bbGridX* = gridCol * (tempgrid._width + 10);
        bbGridY* = gridRow * (tempgrid._height + 10);
        
        tempgrid._x = bbGridX*;
        tempgrid._y = bbGridY*;
        
        var rndX:Number = 0 - Math.round(Math.random() * Stage.width);
        var rndY:Number = 0 - Math.round(Math.random() * Stage.height);
        var rndScale:Number = Math.round(Math.random() * 5) + 1;
        
        var xTween:Tween = new Tween(tempgrid, "_x", Strong.easeOut, rndX, bbGridX*, rndScale, true);
        var yTween:Tween = new Tween(tempgrid, "_y", Strong.easeOut, rndY, bbGridY*, rndScale, true);
        
        gridCol++;

    }

```
