Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Sinuosidual Exponential EaseIn  

Download

How to create an sinosidual easein.

Actionscript

var t:Number = 0;
var dt:Number = 0.2;
var amp:Number = 0.02;

ball_mc.onEnterFrame = function(){
ball_mc._x += amp*Math.exp(t/2)*Math.sin(t*Math.PI/2+Math.PI/2)*dt
t += dt;
};

Note: Press the "refresh" button in the browser to play the animation again.



© 2007 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us