Hi guys, im a former user of FuseKit, for the time being as i like more the performance of TweenMax over Fusekit, but i got used to the flexibility of Penner Easing Equations, is there a way to use them on TweenMax?
I tried fl.motion.easing.* seems to have all of the penner equations Expo, Sine, etc.
So, is there a way to use them with TweenMax?
maybe im not writting the syntax correctly i dont know here is my piece of practice code
Here is an except from the TweenLite AS3 page comments (applied also to AS2 since the syntax is the same etc… likewise for TweenMax/Lite/Filter) Maybe it will help you.
jack said, on August 12th, 2007 at 4:04 pm
Tim, you absolutely can use ANY easing function you want including the ones that ship with Flash (fl.motion.easing and fl.transitions.easing packages) or Robert Penner’s or custom ones you write. I’m pretty sure that the reason you got an error when trying to use Strong.easeInOut is because you forgot to import the proper class which I believe is fl.transitions.easing.*. I didn’t include all of the various easing equations inside the class because it would eat up too much space unnecessarily.
Tim said, on August 13th, 2007 at 12:23 am
HI Jack, thanks for your speedy reply! Yeah, I feel stupid now, I just forgot to import them. I figured it out, 30min after posting… Works like a charm, I´ll try to use some of the penner equations next. I think your concept of a totally lightweight tweening class is great. I really only need one or two of the easings, then I´m happy… Just a small questiion, tough… where should I write my custom easing equations? Sorry, I´m a total newbie when it comes to as3 or even oop actionscript… Thanks again for your wonderful class
tim
jack said, on August 13th, 2007 at 12:54 am
Tim, technically it doesn’t really matter where you put your custom easing functions. It would probably make most sense to put them where you use them, like if you have a BouncingBall class that uses a custom easing equation, put your custom function inside your BouncingBall class file. Or if you have equations that you reference from multiple places, create your own class/package just for those (kinda like Adobe did with the fl.motion.easing package)
Hi thanks for your reply, tho i found a solution for this reading some other forums and came up with a conclusion, if anyone is interested in the same subject here is my solution.
You can find robert penner’s easing equations in www.robertpenner.com
Works like a charm!
[QUOTE=nosh247;2351883]I got used to the flexibility of Penner Easing Equations, is there a way to use them on TweenMax? I tried fl.motion.easing.* seems to have all of the penner equations Expo, Sine, etc… but is there a way to replace Bounce.easeOut by “easeInOutElastic” or something along the line?[/QUOTE]
[QUOTE=nosh247;2351950]Hi thanks for your reply, tho i found a solution for this reading some other forums and came up with a conclusion, if anyone is interested in the same subject here is my solution… robert penner’s easing equations…Works like a charm![/QUOTE]
Hi Nosh,
I am glad you got it sorted out to your liking. However your solution does not seem like what you originally requested…
Original:
ease:Bounce.easeOut
Desired/Requested:
easeInOutElastic
Solution
ease:Expo.easeInOut
You seem to be using CS3, I think Robert Penner works for Adobe now, so they should all be built into CS3 by default. I think?