# \[Flash8\] Help needed with Draw API (AS2)

**URL:** <https://forum.kirupa.com/t/flash8-help-needed-with-draw-api-as2/232631>\
**Category:** flash\
**Created:** [July 16, 2007, 4:13pm UTC](https://forum.kirupa.com/t/flash8-help-needed-with-draw-api-as2/232631 "2007-07-16T16:13:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maddug](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Maddug](https://forum.kirupa.com/u/Maddug)\
**Post date:** [July 16, 2007, 4:13pm UTC](https://forum.kirupa.com/t/flash8-help-needed-with-draw-api-as2/232631/1 "2007-07-16T16:13:13Z")

</div>

Hi all,

I’ve done the Draw API tutorial on the site and it works like a dream. My question is:

I have an icon that the user clicks to turn the draw api on and off. I can get it to turn on and if the icon is clicked again it clears the stage. But I want it to clear the stage and turn the Draw api off so that they can use the mouse and drag it without making a line. Then when they click the icon again it turns on.

Anyone have suggestions on how to accomplish this?

Thanks!
