topical media & game development 
  
 
 
 
 
  
    
    
  
object-ax-ball.ax
object-ax-ball.ax
(swf
) 
[ flash
]
flex
  package {
          import flash.display.Sprite;
          
          public class @ax-object-ax-ball extends Sprite {
                  public var radius:Number;
                  private var color:uint;
                  public var xpos:Number = 0;
                  public var ypos:Number = 0;
                  public var zpos:Number = 0;
                  public var vx:Number = 0;
                  public var vy:Number = 0;
                  public var vz:Number = 0;
                  public var mass:Number = 1;
                  
                  public function @ax-object-ax-ball(radius:Number=40, color:uint=0xff0000) {
                          this.radius = radius;
                          this.color = color;
                          init();
                  }
                  public function init():void {
                          graphics.lineStyle(0);
                          graphics.beginFill(color);
                          graphics.drawCircle(0, 0, radius);
                          graphics.endFill();
                  }
          }
  }
  
  
(C) Æliens 
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. 
In case of other copyright issues, contact the author.