Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Simple 2D Wave Motion (SHM)  

Download .fla

Actionscript

var angle = 0;
var amplitude = 50;

onEnterFrame = function (){
ball_mc._y = Stage.height/2 + amplitude*Math.sin((angle*Math.PI)/180);
ball_mc._x += 2;
angle += 5;
}


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