Problem with the smoothing of straight line

Hello.
I have a problem with drawing line on AS. See image below.

var temp:Sprite = new Sprite();
var xP:Number;
var yP:Number;
var g:Graphics = temp.graphics;
temp.x = stage.stageWidth / 2;
temp.y = stage.stageHeight / 2;
g.lineStyle(1,0,1);

for(var phi:Number = -Math.PI/2; phi <= Math.PI/2;phi += 0.1)
{
   g.moveTo(0,0);
   xP=200*Math.cos(phi);
   yP=200*Math.sin(phi);
   g.lineTo(xP,yP);
}

addChild(temp);

Whether it is possible to receive the same image as in Canvas (JavaScript)?
Maybe someone knows, what algorithm is used in Canvas for drawing of a straight line?
Thanks in advance.