# A working eraser tool

**URL:** https://forum.kirupa.com/t/a-working-eraser-tool/274682
**Category:** Uncategorized
**Created:** [November 3, 2008, 12:37am UTC](https://forum.kirupa.com/t/a-working-eraser-tool/274682 "2008-11-03T00:37:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mattkenefick](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mattkenefick](https://forum.kirupa.com/u/mattkenefick)
#### Post date: [November 3, 2008, 12:37am UTC](https://forum.kirupa.com/t/a-working-eraser-tool/274682/1 "2008-11-03T00:37:47Z")

</div>

I’ve seen a few examples of drawing programs but they hardly ever have real eraser tools. They either replace something with white, delete entire objects, or don’t even have one. I created this one just to show how it’s done for those who don’t know.

[http://mattkenefick.com/blog/2008/11/erasing-bitmapdata-using-actionscript/](http://mattkenefick.com/blog/2008/11/erasing-bitmapdata-using-actionscript/)

If you want to use shapes for speed, simply create a Sprite object… On MOUSE\_DOWN you do your drawing techniques, then on MOUSE\_UP, you draw the Sprite to the BitmapData layer and Sprite.clear() your shape.

Easy as pie and allows a real eraser.
