You are not passing a value.  You are passing a Class object type.

Instead of "Tweener.addTween(c, {position:Number3D, time:2});", try
this:

Tweener.addTween(c, {position:pos, time:2});

Also, as Fabrice mentioned, make sure that "position" is actually an
accessible property for Tweener.



On Mar 16, 3:46 am, metSyS <[email protected]> wrote:
> Why i can't change position of some primitive in this way :
>
> public var pos:Number3D=new Number3D(-33, -36, 0);
> public var c:Cube=new Cube();
> ...
> Tweener.addTween(c, {position:Number3D, time:2});

Reply via email to