# Sketchpad Tutorial Question Pls Help :(

**URL:** <https://forum.kirupa.com/t/sketchpad-tutorial-question-pls-help/32296>\
**Category:** flash\
**Created:** [October 4, 2003, 4:00pm UTC](https://forum.kirupa.com/t/sketchpad-tutorial-question-pls-help/32296 "2003-10-04T16:00:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xcute](https://avatars.discourse-cdn.com/v4/letter/x/71e660/32.png) [@xcute](https://forum.kirupa.com/u/xcute)\
**Post date:** [October 4, 2003, 4:00pm UTC](https://forum.kirupa.com/t/sketchpad-tutorial-question-pls-help/32296/1 "2003-10-04T16:00:30Z")

</div>

createEmptyMovieClip(“Line”,1);  
Line.lineStyle(2,0x000000,100);

onMouseDown = function (){  
Line.moveTo(\_xmouse, \_ymouse);  
onMouseMove = function (){  
Line.lineTo(\_xmouse, \_ymouse);}  
}  
onMouseUp=function(){  
onMouseMove=null;  
}

How do we use this code on a movieclip (limited space for sketching) created by us ?

If i’m not mistaken the onMouseMove = null function for the code below is not correct …please help!!

onClipEvent (load) {  
lineStyle(2,0x000000,100);  
}  
onClipEvent (mouseDown) {  
moveTo(\_xmouse, \_ymouse);  
}

onClipEvent (mouseMove) {  
lineTo(\_xmouse, \_ymouse);  
}

onClipEvent (mouseUp) {  
onMouseMove=null;  
}
