# Senoculas' drawing api

**URL:** <https://forum.kirupa.com/t/senoculas-drawing-api/223543>\
**Category:** Uncategorized\
**Created:** [April 23, 2007, 6:56pm UTC](https://forum.kirupa.com/t/senoculas-drawing-api/223543 "2007-04-23T18:56:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaoss](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kaoss](https://forum.kirupa.com/u/kaoss)\
**Post date:** [April 23, 2007, 6:56pm UTC](https://forum.kirupa.com/t/senoculas-drawing-api/223543/1 "2007-04-23T18:56:45Z")

</div>

lo all… me again back for help!!

i was stuck the other day with animated drawing. senocular pointed me to his drawing class (which worked out great btw/ grateful\<).

it did exactly what i needed. only thing is i cant figure out how to clear the drawing after it completes. following code is the last line to be drawn.  
(ive stripped this down to a really basic version that i can understand/use)  
so i may have misplaced smthin in the code!

// import class  
import com.senocular.ProgressiveDrawing;

// starDrawing ProgressiveDrawing instance, draws in \_root  
var starDrawing:ProgressiveDrawing = new ProgressiveDrawing(\_root);

// 3RD SQUARE  
starDrawing.lineStyle(0,0,100);  
starDrawing.moveTo(670.5,588.6);  
starDrawing.lineTo(670.5,578);

// draw square over (?) frames  
starDrawing.draw(2);

i guess i need this piece of code smwhere but cant figure out where or how to handle it

???.clearDrawing();

if you look at the link (if youve time) youll see a small vertical line near bottom right.  
[http://www.kaoss.org.uk/drawn/](http://www.kaoss.org.uk/drawn/)  
any ideas?

i know im a gimp, askin again!! but i have tried to work it out! onest.

thnx.  
kev.
