Drawing Bord Question

Hi,

there is a tutorial about making a Drawing Board in the site…
(http://www.kirupa.com/developer/actionscript/drawingboard.htm)


 
_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;
}
 

But in that way you draw All Over your screen…
Is there a way to Limit this to a Given Area or Something like that?

Thank You

Elements