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:
_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