topical media & game development
lib-flex-animation-code-02-com-foed-Circle.ax
lib-flex-animation-code-02-com-foed-Circle.ax
(swf
)
[ flash
]
flex
package com.foed
{
import flash.display.Sprite;
public class @ax-lib-flex-animation-code-02-com-foed-Circle extends Sprite
{
private var _radius:Number;
private var _color:uint;
public function @ax-lib-flex-animation-code-02-com-foed-Circle(radius:Number, color:uint = 0x000000)
{
_radius = radius;
_color = color;
graphics.lineStyle(0, _color);
graphics.draw@ax-lib-flex-animation-code-02-com-foed-Circle(0, 0, _radius);
}
public function get radius():Number
{
return _radius;
}
public function get position():Vector2D
{
return new Vector2D(x, y);
}
}
}
(C) Æliens
18/6/2009
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.