# Graphic.lineTo HELP

**URL:** <https://forum.kirupa.com/t/graphic-lineto-help/326006>\
**Category:** Uncategorized\
**Created:** [November 16, 2011, 6:20pm UTC](https://forum.kirupa.com/t/graphic-lineto-help/326006 "2011-11-16T18:20:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Ahlers](https://avatars.discourse-cdn.com/v4/letter/r/9f8e36/32.png) [@Robert\_Ahlers](https://forum.kirupa.com/u/Robert_Ahlers)\
**Post date:** [November 16, 2011, 6:20pm UTC](https://forum.kirupa.com/t/graphic-lineto-help/326006/1 "2011-11-16T18:20:32Z")

</div>

how would i target a section of a graphin of lineTo and make jsut that section not visible

here is my current code…

```auto
private function drawLaser():void
        {
            laserCanvas.graphics.clear();
            laserCanvas.graphics.lineStyle(5,0xffffff);
            laserCanvas.graphics.moveTo(draggableVector[0].x,draggableVector[0].y);
            for (var i:Number=1; i<DRAGGABLES; i++)
            {
                laserCanvas.graphics.lineTo(draggableVector*.x,draggableVector*.y);
            }
            laserCanvas.graphics.lineTo(draggableVector[0].x,draggableVector[0].y);
        }

```

i want to target the section between draggableVector2 and draggableVector3 and make that section not visble…  
and i wanat this to be inside of a hittest for whenever the line hits an “obstical”
