Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Simple Dynamic Wave (Drawing API)  

Download .fla

Actionscript

var angle = 0;
var amplitude = 50;
var y = Stage.height/2;
var x = 0;

moveTo(0,Stage.height/2);
lineStyle(2,0xFF0000,100);

onEnterFrame = function (){
y = Stage.height/2 + amplitude*Math.sin((angle*Math.PI)/180);
x += 1;
angle += 5;
lineTo(x,y);
}


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