Return to Snippet

Revision: 33324
at October 8, 2010 00:30 by adamcoulombe


Initial Code
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;
	}
}

Initial URL
http://www.adamcoulombe.info/lab/as3/polkadot-orbit.html

Initial Description
simple way to make an orbiting effect in flash with as3

Initial Title
AS3 Orbiting Polkadots

Initial Tags
flash

Initial Language
ActionScript 3