# Smooth multiple animations

**URL:** <https://forum.kirupa.com/t/smooth-multiple-animations/273659>\
**Category:** flash\
**Created:** [October 18, 2008, 1:43pm UTC](https://forum.kirupa.com/t/smooth-multiple-animations/273659 "2008-10-18T13:43:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fido\_glc](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@fido\_glc](https://forum.kirupa.com/u/fido_glc)\
**Post date:** [October 18, 2008, 1:43pm UTC](https://forum.kirupa.com/t/smooth-multiple-animations/273659/1 "2008-10-18T13:43:58Z")

</div>

Hello.

I need to animate multiple movieclips at once. About 20 movieclips.

I am using a function which I call for each movieclip, with different parameters.

The framerate is 40 fps.

The problem is that the animations run slow, they are far from being smooth.  
I have seen a lot of flash applications that animate a lot of objects at the same time and they are very smooth.

Is there a technique to it ?

Here is the used function.

```auto

function animate(mc:MovieClip, tX:Number, tY:Number, tWidth:Number, tHeight:Number, tAlpha:Number):Void {
    var aT:Number = 0.7;
    new Tween(mc, "_x", Strong.easeOut, mc._x, tX, aT, true);
    new Tween(mc, "_y", Strong.easeOut, mc._y, tY, aT, true);
    new Tween(mc, "_width", Strong.easeOut, mc._width, tWidth, aT, true);
    new Tween(mc, "_height", Strong.easeOut, mc._height, tHeight, aT, true);
    new Tween(mc, "_alpha", Strong.easeOut, mc._alpha, tAlpha, aT, true);
}

```

Looking forward to your answers.

Thank you.
