/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function onEnterFrame(event:Event):void { ball.y=centerScale+Math.sin(angle)*range; angle+=speed; }