Search  

TWEENER'S DEFAULT TRANSITION

HomeForumsFlash DiscussionTweener's default transition
38635 flasher3015
243 posts
Exclusive author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 10 and 49 items

Anybody knows how to change Tweener’s default transition type? The default one is “easeOutExpo” i think, but i want it to be the “linear” one, because that is how it should be :) I just started using tweener and it’s a little bit frustrating to change the transition type for almost every tween.. Does anybody who uses tweener know how to do that?

Posted 29 days ago
41362 enhancedmedia
82 posts
Sold between 100 and 1 000 dollars

yeah just replace the words easeOutExpo with linear, if you have quite a few to change, just press ctrl F, and use the find and replace feature so you can skip through them all in no time. hope that helps

Posted 29 days ago
38635 flasher3015
243 posts
Exclusive author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 10 and 49 items

The default syntax is this : Tweener.addTween(mc,{_x:0,time:2})
To make a linear transition you have to use this : Tweener.addTween(mc,{_x:0,time2,transition:”linear”})

So there is extra typing in there and i want to get rid of it :D Thanks for your reply though

Posted 29 days ago
28144 SaafiDesign
1221 posts
Exclusive author Item was featured Author was featured Referred at least one person Reviewer Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items

you have to change the Tweener class itself. I think line 162 is the required line you have to change. if (!Boolean(rTransition)) rTransition = _transitionList[“easeoutexpo”];

to:

if (!Boolean(rTransition)) rTransition = _transitionList[“linear”];

Posted 29 days ago
38635 flasher3015
243 posts
Exclusive author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 10 and 49 items

Thanks Saafi
It was line 181 in my class and the syntax was a little bit different but it worked :)

Posted 29 days ago