[Tweener] using _bezier / following up on Tweener Digest 19, issue 6
Zeh Fernando
zeh at zehfernando.com
Mon Aug 4 07:14:40 PDT 2008
> hi.
> I was reading this, and had to test it.
> so I downloaded the latest version of Tweener for AS3 (tweener_1_31_70_as3).
> then I drew a rectangle on stage, instancenamed it obj_mc, and added the
> following actionscript:
> (...)
> Tweener.addTween(obj_mc, {x:50, y:50, _bezier:myPath, time:5,
> transition:"linear"});/
> but when testing the file, the rectangle just moves to the desired spot
> in a straight line... what am I doing wrong?
The values inside each point used on the _bezier parameter should have
the real property names (they're not specially hardcoded property
names). And since you're using AS3, you don't need underlines, ie:
myPath.push({x:750, y:60});
That should work.
Zeh
More information about the Tweener
mailing list