init(s)


    private function init():void {
     ball = new animation_ch03_Ball();
     addChild(ball);
     ball.x = 0;
     addEventListener(Event.ENTER_FRAME, onEnterFrame);
    }
  

frame(s)


    public function onEnterFrame(event:Event):void {
     ball.x = centerX + Math.sin(angle) * radius;
     ball.y = centerY + Math.cos(angle) * radius;
     angle += speed;
    }
   }
  }