# Drawing Bord Questions

**URL:** <https://forum.kirupa.com/t/drawing-bord-questions/208687>\
**Category:** Uncategorized\
**Created:** [December 1, 2006, 6:47am UTC](https://forum.kirupa.com/t/drawing-bord-questions/208687 "2006-12-01T06:47:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elementss](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/elementss/32/1698_2.png) [@Elementss](https://forum.kirupa.com/u/Elementss)\
**Post date:** [December 1, 2006, 6:47am UTC](https://forum.kirupa.com/t/drawing-bord-questions/208687/1 "2006-12-01T06:47:14Z")

</div>

Hi,

There is a Tutorial for making a Drawing Bord in the site…  
([http://www.kirupa.com/developer/actionscript/drawingboard.htm](http://www.kirupa.com/developer/actionscript/drawingboard.htm))

```auto

_root.createEmptyMovieClip("line",1);
 
_root.onMouseDown = function(){
 line.moveTo(_xmouse,_ymouse);
 line.lineStyle(2,0x000000,100);
 this.onMouseMove = function(){
  line.lineTo(_xmouse,_ymouse);
  updateAfterEvent();
 }
}
_root.onMouseUp = function(){
 this.onMouseMove = null;
}

```

How can i Limit the area where it draws ?  
and, I placed the code in the first Frame (it’s a Single KeyFrame) but it still draws in all of the frames of the movie…How can i make it Stop drawing on a mouse Press?

Thank You,

Elements
