Hi, I think there’s a bug in FlashPlayer 10 Graphics:
When you set LineScaleMode.NONE + JointStyle.MITER, draw a line then change the thickness of that line then the player won’t clear the border line correctly:
var S:Sprite = new Sprite();
var G:Graphics = S.graphics;
var thickness:Number = 1;
var i:int = 1;
S.x = S.y = 200;
addChild(S);
function draw():void
{
G.clear();
G.lineStyle(thickness, 0xFF0000, 1, true, LineScaleMode.NONE, CapsStyle.SQUARE, JointStyle.MITER);
G.drawRect(-50, -50, 100, 100);
}
setInterval(function()
{
thickness += i;
draw();
S.rotation += i * 2;
if ((thickness>50) || (thickness==1)) i = -i;
}, 20);
}, 20);
It works correctly in FlashPlayer 9.