# Using Tweening Prototypes and Variables

**URL:** <https://forum.kirupa.com/t/using-tweening-prototypes-and-variables/206921>\
**Category:** flash\
**Created:** [November 13, 2006, 6:38am UTC](https://forum.kirupa.com/t/using-tweening-prototypes-and-variables/206921 "2006-11-13T06:38:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterpatrick](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@misterpatrick](https://forum.kirupa.com/u/misterpatrick)\
**Post date:** [November 13, 2006, 6:38am UTC](https://forum.kirupa.com/t/using-tweening-prototypes-and-variables/206921/1 "2006-11-13T06:38:29Z")

</div>

Hello all,

I’d like to use an array/variable with the lmc 1.2 tweening prototypes. I can’t seem to get this to work. Can anyone see anything wrong with this code:

```auto
var myArray:Array = new Array("circle");
myArray[0].tween('_x', 400, 2,'easeInCubic', 0);

```

I’ve also tried:

```auto
var myArray:Array = new Array("circle");
var myVariable = myArray[0];
myVariable.tween('_x', 400, 2,'easeInCubic', 0);

```

Can I make this work? Thanks!
