/ Published in: ActionScript 3
URL: http://www.adamcoulombe.info/lab/as3/polkadot-orbit.html
simple way to make an orbiting effect in flash with as3
Expand |
Embed | Plain Text
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; } }
You need to login to post a comment.
