# DrawingAPI

**URL:** <https://forum.kirupa.com/t/drawingapi/152299>\
**Category:** flash\
**Created:** [June 22, 2005, 6:46pm UTC](https://forum.kirupa.com/t/drawingapi/152299 "2005-06-22T18:46:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WandMan](https://avatars.discourse-cdn.com/v4/letter/w/a88e4f/32.png) [@WandMan](https://forum.kirupa.com/u/WandMan)\
**Post date:** [June 22, 2005, 6:46pm UTC](https://forum.kirupa.com/t/drawingapi/152299/1 "2005-06-22T18:46:08Z")

</div>

Can I get this code to be on release erase

```auto
 
// 3. BUTTON "ERASE":
// --------------------
buttonErase.onPress = function(){
_root.line.clear();
}
 

```

I can’t seem to figure it out
