# LineScaleMode.NONE + JointStyle.MITER causes a bug

**URL:** <https://forum.kirupa.com/t/linescalemode-none-jointstyle-miter-causes-a-bug/292760>\
**Category:** flash\
**Created:** [July 18, 2009, 3:18pm UTC](https://forum.kirupa.com/t/linescalemode-none-jointstyle-miter-causes-a-bug/292760 "2009-07-18T15:18:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonnieraymond](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bonnieraymond](https://forum.kirupa.com/u/bonnieraymond)\
**Post date:** [July 18, 2009, 3:18pm UTC](https://forum.kirupa.com/t/linescalemode-none-jointstyle-miter-causes-a-bug/292760/1 "2009-07-18T15:18:48Z")

</div>

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:

```auto

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.
