Making a moving planet

Here are the steps

  1. Make a movie clip of a circle. Give it the instance name "planet."
  2. Make a "Input" text box. Call it "i"
  3. Click on Frame 1 and type in the action script panel, i=0.
  4. Click on the planet and paste the following code into the action script panel.
    onClipEvent (enterFrame) {
    i=_root.i;
    i=(i+6)%360;
    r=i/180*Math.pi();
    setProperty(_root.planet, _x, 200.+100.*Math.cos(r))
    setProperty(_root.planet, _y, 200.+100.*Math.sin(r))
    _root.i=i;
    }
  5. Test your movie.