# Storing Tweener in variables

**URL:** <https://forum.kirupa.com/t/storing-tweener-in-variables/261908>\
**Category:** Uncategorized\
**Created:** [June 1, 2008, 5:31pm UTC](https://forum.kirupa.com/t/storing-tweener-in-variables/261908 "2008-06-01T17:31:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m00nz00mer](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@m00nz00mer](https://forum.kirupa.com/u/m00nz00mer)\
**Post date:** [June 1, 2008, 5:31pm UTC](https://forum.kirupa.com/t/storing-tweener-in-variables/261908/1 "2008-06-01T17:31:08Z")

</div>

hey can someone help with this… im trying to store a Tweener animation in a variable like this…

var mycamtween:Tweener.addTween(camera, {zoom: 4, time: 1} );

however this doesnt work i get…

1046: Type was not found or was not a compile-time constant: .

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 1, 2008, 11:03pm UTC](https://forum.kirupa.com/t/storing-tweener-in-variables/261908/2 "2008-06-01T23:03:41Z")

</div>

Try this:

```auto
var mycamtween:Tweener = Tweener.addTween(camera, {zoom: 4, time: 1});

```
