You might also want to consider using a faster tween library. Tweener is great, but there are much faster engines out there
http://code.google.com/p/actuate/ You can also reference the x, y and z properties individually, of course Tweener.addTween (c, { x: -33, y: -36, z: 0, time: 2 } ); Actuate.tween (c, 2, { x: -33, y: -36, z: 0 } ); On Tue, 16 Mar 2010 10:41:38 -0600, delfeld <[email protected]> wrote:
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});
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
