# Questions about Drawing Bord

**URL:** <https://forum.kirupa.com/t/questions-about-drawing-bord/209904>\
**Category:** flash\
**Created:** [December 13, 2006, 5:52am UTC](https://forum.kirupa.com/t/questions-about-drawing-bord/209904 "2006-12-13T05:52:57Z")\
**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 13, 2006, 5:52am UTC](https://forum.kirupa.com/t/questions-about-drawing-bord/209904/1 "2006-12-13T05:52:57Z")

</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
