My Account
var gravity = 10; var floor = 250; var Vy = 0; ball_mc._y = 40;
ball_mc.onEnterFrame = function() { Vy += gravity; this._y += Vy/4;
if (this._y > floor) { this._y = floor; Vy = -Vy; } };
© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy Home | About Quantunet | FAQ's | Contact Us