PDA

View Full Version : Caurina Tweening Class - Control speed problem



biztaty
August 5th, 2008, 05:12 PM
Hi,

I am trying to use the caurina tweening class that can be found here: http://code.google.com/p/tweener/

My problem is that I am not able to control the speed of this tween, because by default the motion starts fast and it stops slowly, like easing in type of a motion,

There is a special file that is included called TransitionCheatSheets and it includes various types of commands to control the easing speed, but i don't understand where to insert these commands,

I am not expert in ActionScript,

I would really appreciate if anyone could advice me on the right direction

geestring
August 5th, 2008, 05:51 PM
gotoandlearn.com has a tutorial.

basically do Tweener.addTween(myMc, { x:destX, y:destY, transition:"easeOutElastic", alpha:1, time:1});

so transition is where you would type the tween type from the cheat sheets. The time will control the duration/speed of the tween.

biztaty
August 5th, 2008, 06:20 PM
gotoandlearn.com has a tutorial.

basically do Tweener.addTween(myMc, { x:destX, y:destY, transition:"easeOutElastic", alpha:1, time:1});

so transition is where you would type the tween type from the cheat sheets. The time will control the duration/speed of the tween.

Hi,

thanks so much, i will try this out shortly and yes i got it from gotoandlearn and sorry i forgot to attach my code:


import caurina.transitions.*;
Tweener.addTween(air, {time:3,
rotation:30});