# \[AS2, Flash CS3\] Tweener with dynamic instance name

**URL:** <https://forum.kirupa.com/t/as2-flash-cs3-tweener-with-dynamic-instance-name/312233>\
**Category:** flash\
**Created:** [July 28, 2010, 6:10pm UTC](https://forum.kirupa.com/t/as2-flash-cs3-tweener-with-dynamic-instance-name/312233 "2010-07-28T18:10:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndyA](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@AndyA](https://forum.kirupa.com/u/AndyA)\
**Post date:** [July 28, 2010, 6:10pm UTC](https://forum.kirupa.com/t/as2-flash-cs3-tweener-with-dynamic-instance-name/312233/1 "2010-07-28T18:10:20Z")

</div>

Hi everyone,

I’ve just come across a problem when using the caurina Tweener for AS2. It works fine with an absolute instance name, for an object on the stage; however as soon as I try to use a dynamic instance name - it stops recognising simple properties like \_x and \_y, returning this Output message:

> ## [Tweener] Error: The property ‘\_height’ doesn’t seem to be a normal object property of menu1 or a registered special property.

## [Tweener] Error: The property ‘\_width’ doesn’t seem to be a normal object property of menu1 or a registered special property.

## [Tweener] Error: The property ‘\_y’ doesn’t seem to be a normal object property of menu1 or a registered special property.

## [Tweener] Error: The property ‘\_x’ doesn’t seem to be a normal object property of menu1 or a registered special property.

Here is a code snippet:

```auto
_root.currentitem = 1;
_root.xpos = 0;
_root.ypos = 0;
Tweener.addTween(["menu"+_root.currentitem], {_x:_root.xpos, _y:_root.ypos, _width:85.0, _height:85.0, time:_root.clicktime, transition:_root.clicktype});
		

```

All other tweens work fine. There are objects on the stage with instance names of “menu1”, “menu2” etc.

How can I fix this? :S

Thanks in advance for any replies,  
Andy
