[Tweener] using _bezier / following up on Tweener Digest 19, issue 6
Yvan Touzeau (Intl Vendor)
v-yvtouz at microsoft.com
Mon Aug 4 08:04:48 PDT 2008
Have you tried using x and y instead of _x and _y ?
I think that variables stored in the bezier objects in the bezier list must have the same names than the variables you want to tween : x, scaleX, ...
De : tweener-bounces at lists.caurinauebi.com [mailto:tweener-bounces at lists.caurinauebi.com] De la part de Felix Sanchez
Envoyé : lundi 4 août 2008 15:58
À : tweener at lists.caurinauebi.com
Objet : [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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20080804/c4b10415/attachment.htm>
More information about the Tweener
mailing list