[Tweener] using _bezier / following up on Tweener Digest 19, issue 6
Graeme Blackwood
grayhammy at hotmail.com
Mon Aug 4 07:09:53 PDT 2008
I might be mistaken, but you need to set your x and y positions when you create the object. The tweener then animates from the coordinates you set at the top of your code TO the coordinates you enter into the Tweener.addTween parameters, so because you have set the _x and _y here, you over-ride the bezier and just send it in a straight line.
That's my guess, but I am pretty inexperienced...
G
www.nbatdigital.co.uk
From: Felix Sanchez
Sent: Monday, August 04, 2008 2:57 PM
To: tweener at lists.caurinauebi.com
Subject: [Tweener] using _bezier / following up on Tweener Digest 19, issue 6
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:
//imports
import caurina.transitions.Tweener;
import caurina.transitions.properties.CurveModifiers;
CurveModifiers.init();
var myPath = new Array();
myPath.push({_x:120, _y:120});
myPath.push({_x:150, _y:150});
myPath.push({_x:450, _y:10});
myPath.push({_x:650, _y:280});
myPath.push({_x:750, _y:60});
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?
thanks
felisan
--
------------------------------
http://felisan.wordpress.com
--------------------------------------------------------------------------------
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080804/38f0ab5c/attachment.htm>
More information about the Tweener
mailing list