# Erase tool MovieClip.graphics.lineTo

**URL:** <https://forum.kirupa.com/t/erase-tool-movieclip-graphics-lineto/312342>\
**Category:** flash\
**Created:** [July 31, 2010, 1:12pm UTC](https://forum.kirupa.com/t/erase-tool-movieclip-graphics-lineto/312342 "2010-07-31T13:12:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)\
**Post date:** [July 31, 2010, 1:12pm UTC](https://forum.kirupa.com/t/erase-tool-movieclip-graphics-lineto/312342/1 "2010-07-31T13:12:30Z")

</div>

Hello :). I have one simple app, loads an image and then via class that extends shape the user is able to draw. Now I want to create an eraser tool so the user could erase something that he dislikes. As far as I know the easiest way is to make:

```auto
lineStyle(size, 0xffffff,1);
                    moveTo(mouseX, mouseY);

```

and if the background is white I am ready. However it is not and I don’t know what to do. Have you come across this issue before? Thank you in advance
