I use Flex 4.5 to do program a simple user interface.
I want to add the popups easing animations, especially Elastic (spark.effects.easing.Elastic).
Is there a way to change the attribute of the Elastic animation? it bounces back and forth too much, is there a way to change that behavior or to mimic that behavior using some other easing animation that does provide the options I need ?
Example code can be found at:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/effects/easing/Elastic.html
thanks
You can subclass the spark Elastic ease class to expose a couple more customization variables like this:
If those variables don’t provide the control you are looking for then you could just copy and paste the code from mx.effects.easing.Ellastic.easeOut() into MyElastic.ease() and have complete control over the tweaks you need to make there.
Here is a simple sample application that demonstrates this subclass: