Mega Code Archive

 
Categories / Flex / Effects
 

Using easing functions with the Move effect to make motion less linear

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"     backgroundColor="white">     <mx:Script>import mx.effects.easing.*</mx:Script>     <mx:Move id="myEffect" xBy="300" easingFunction="{Elastic.easeOut}" />     <mx:Button label="Make me move" mouseDownEffect="{myEffect}" /> </mx:Application>