/ Published in: ActionScript 3
simple way to make an orbiting effect in flash with as3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
addEventListener(Event.ENTER_FRAME,doOrbit) function doOrbit(e){ orbit.rotation+=1; for(var i=0; i<orbit.numChildren; i++){ var planet = orbit.getChildAt(i); planet.rotation -=1; } }
URL: http://www.adamcoulombe.info/lab/as3/polkadot-orbit.html