# Erase Vector Drawing?

**URL:** <https://forum.kirupa.com/t/erase-vector-drawing/327324>\
**Category:** flash\
**Created:** [February 21, 2012, 9:50pm UTC](https://forum.kirupa.com/t/erase-vector-drawing/327324 "2012-02-21T21:50:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmennenoh](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dmennenoh](https://forum.kirupa.com/u/dmennenoh)\
**Post date:** [February 21, 2012, 9:50pm UTC](https://forum.kirupa.com/t/erase-vector-drawing/327324/1 "2012-02-21T21:50:12Z")

</div>

I have a Sprite that I draw into using lineTo. Later the sprite is drawn into a bitmap to add to a mask. That works great. The issue is erasing the vectors in the Sprite once they are drawn.

To draw I just do something like:  
userDrawing.graphics.lineStyle(12,0x000000,1);  
userDrawing.graphics.lineTo(mouseX,mouseY)

Figured it would be as simple as setting lineStyle like:  
userDrawing.graphics.lineStyle(12,0x000000,0);  
or  
userDrawing.graphics.lineStyle(12,0x00000000,1);

But neither of those affect the lines already drawn.
