Revision: 34422
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 22, 2010 04:59 by adamcoulombe
Initial Code
var mid = new Object(); mid = {x:stage.stageWidth/2,y:stage.stageHeight/2}; var elapsed = 0; addEventListener(Event.ENTER_FRAME,loop); function loop(e){ var rad = elapsed * 0.1; myBox.x = mid.x + (Math.sin(rad)* rad ); myBox.y = mid.y + (Math.cos(rad)* rad ); elapsed++; }
Initial URL
http://www.adamcoulombe.info/lab/as3/circle-loop.html
Initial Description
More information, demo & FLA file download at http://www.adamcoulombe.info/lab/as3/circle-loop.html
Initial Title
AS3 Circular Radius Positioning Animation
Initial Tags
Initial Language
ActionScript 3