[Tweener] Multiple bezier points and elastic/back easing
Nolan Butcher
nolan at flexgraphix.com
Tue Feb 24 20:56:02 PST 2009
Hi all,
Ok.. I'm stumped with this one..
First, here's some quick pseudo code:
caurina.properties.CurveModifiers.init();
var ball : Ball = new Ball();
var _bezArray : Array = [{x:300, y:400},{x:300, y:550}];
Tweener.addTween(ball, { x:350, y:600, time:3, _bezier : _bezArray,
transition:'easeInBack'});
Now, if the code runs as-is (with multiple bezier points within the
_bezArray array), when the ball should be tweening "back", it instead gets
placed at the local 0,0 coordinates. Basically, the ball "jumps" to 0,0,
then back to it's starting point as the tween continues to run.
For a better representation, download the 'bezier
<http://tweener.googlecode.com/svn/trunk/examples/bezierMaker_as3_flash9cs3.
zip> maker' and change the transition to 'easeInBack' or 'easeInElastic' in
the 'Main.as' doc class. Test the movie with both one bezier point and then
with two points, and note the difference in behavior. After running some
tests, this is also the case with 'easeOut*' transitions and others where
there is some overshoot of the end or starting point..
I've attempted creation of custom transitions, and have played with the
'amplitude', 'period' and 'overshoot' params to no end, with no success.
Any thoughts?
TIA J
-NB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090224/535bf65c/attachment.htm>
More information about the Tweener
mailing list