何周もbeginFillし続けたらどうなるか
重なる部分は消える
package {
import flash.events.Event;
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var _canvas:Sprite;
private var _radius:Number = 200;
private var _radian:Number = 0;
public function FlashTest() {
// write as3 code here..
_canvas = addChild(new Sprite()) as Sprite;
_canvas.graphics.lineStyle(1);
_canvas.graphics.beginFill(0xcc0000);
_canvas.x = stage.stageWidth/2;
_canvas.y = stage.stageHeight/2;
_canvas.graphics.moveTo(Math.cos(_radian)*_radius, Math.sin(_radian)*_radius);
addEventListener(Event.ENTER_FRAME, onEnter);
}
private function onEnter(evt:Event):void
{
_radian += 0.05;
_canvas.graphics.lineTo(Math.cos(_radian)*_radius, Math.sin(_radian)*_radius);
}
}
}