| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2008
Posts: 33
|
Using TweenLite AS3; any way to control how much Back or Elastic easing happens. As in making a large movement of 500px and having the amount of Back ease you'd get from say a 100px movement. Same for Elastic.
thanks a ding ding |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Feb 2008
Posts: 33
|
Never mind, I didn't notice someone had asked this same question on the TweenLite site. It was buried in the comments. Here's the answer.
TweenLite doesn’t natively support passing extra parameters to the easing function because doing so would affect performance slightly. TweenLite was carefully tuned to prioritize performance and compactness over trying to be everything to everybody which would lead to “code bloat”. However, there IS a way to do what you’re talking about by simply adding your own easing function that has those parameters hard-coded, like this: ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
A flash Guy
|
groovy
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jan 2008
Location: Near Chicago
Posts: 131
|
Actually, I figured out a way to integrate passing extra parameters without hurting performance. The good news is that TweenLite now accepts a special easeParams property which should be an array with all your extra parameters that you'd like to pass the easing equation. So you could do something like:
ActionScript Code:
Cheers. |
|
|
|
|
|
#5 |
|
A flash Guy
|
groovy +1
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: Aug 2008
Posts: 2
|
If you would like to make a completely custom tween for use with TweenLite I have created an app for you to do just that http://marfastic.blogspot.com/2008/0...tweenlite.html . I based it off of LMC Tween's Flash Panel which allows you to be able to edit a tween to your heart's content.
|
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Jan 2008
Location: Near Chicago
Posts: 131
|
Quote:
http://blog.greensock.com/customease/ ![]() |
|
|
|
|
|
|
#8 | ||
|
Senior Member
Join Date: Apr 2007
Posts: 3,609
|
Quote:
Quote:
@greensock, Jack is your tool in anyway optimized further than the ones mentioned below to work more effieciently with your tween classes? • LacoTween -- Custom Easing Tool • FuseKit -- customEasingTool2 • Penner Easing Equations -- always an option to just modify for your needs • Marfastic -- Create Custom Tween's for TweenLite. I know your big on speed/optimization, but what benefits would one have using yours (donating $) verses using one of the Free ones to create custom tweens? By the way I am not discouraging people from donating, just wishing to know the benefit of your custom ease builder over the others already out there. Thanks for any feedback! ![]() ![]() |
||
|
|
|
|
|
#9 | |
|
Senior Member
Join Date: Jan 2008
Location: Near Chicago
Posts: 131
|
Quote:
Regarding the donations thing, I just try to find some extra ways to create value for people who support me by joining Club GreenSock, and CustomEase is one of my attempts at that. If the other custom ease tools work well for you, by all means, use them instead of mine. I'd love to hear back as to whether or not the other tools work with TweenLite/TweenMax. I'd try 'em myself, but I'm swamped with work and have a deadline tomorrow ![]() Thanks again, Marfastic, for creating a resource for TweenLite/TweenMax users out there! |
|
|
|
|
|
|
#10 | |
|
Senior Member
Join Date: Apr 2007
Posts: 3,609
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing additional parameters to function listeners | john100 | ActionScript 3.0 | 20 | 01-27-2009 06:52 PM |
| Passing ...rest to a function with an undefined number of parameters | rrh | ActionScript 3.0 | 1 | 12-17-2007 11:06 PM |
| using function with parameters in parameters of functions... | squadjot | ActionScript 1.0 (and below) | 3 | 08-04-2006 05:53 PM |
| Component parameters dynamicaly changed from begining question | cYb3rc0re | Components | 0 | 02-25-2006 10:50 AM |
| actions and parameters as parameters | Electric Dandy | ActionScript 2.0 | 3 | 02-12-2006 11:36 AM |