Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Exponential Scale EaseOut  

Download

Actionscript

var t:Number = 0;
var dt:Number = 0.1;
var a:Number = 120;
var b:Number = -1.5;

world_mc._xscale = 1;
world_mc._yscale = 1;

world_mc.onEnterFrame = function() {
world_mc._xscale += a*Math.exp(b*t)*t*dt;
world_mc._yscale += a*Math.exp(b*t)*t*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