# Help on creating bigger movieclip

**URL:** https://forum.kirupa.com/t/help-on-creating-bigger-movieclip/302210
**Category:** Uncategorized
**Created:** [December 23, 2009, 11:37am UTC](https://forum.kirupa.com/t/help-on-creating-bigger-movieclip/302210 "2009-12-23T11:37:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![GAFAAAAA](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@GAFAAAAA](https://forum.kirupa.com/u/GAFAAAAA)
#### Post date: [December 23, 2009, 11:37am UTC](https://forum.kirupa.com/t/help-on-creating-bigger-movieclip/302210/1 "2009-12-23T11:37:15Z")

</div>

Hey can someone help me, i’m making a “make your own animation” flash game. I have made the actionscript for drawing but i need i have put this actionscript on a movieclip called “draw”. it all works but one bit i want the line to get bigger when i press any button, i have created variables but is still doesn’t work when i add:

on (keyPress “\<Up\>”) {  
sizea += 10;  
sizeb += 10;  
}

to this script:

onClipEvent (load) {  
sizea = 10;  
sizeb = 1000;  
createEmptyMovieClip (“Line”, 1) ;  
Line.lineStyle (sizea, 0x000000,sizeb) ;  
onMouseDown = function () {  
Line.moveTo  
(\_xmouse -= 10, \_ymouse += 8) ;  
onMouseMove = function ()  
{ Line.lineTo  
(\_xmouse -= 10, \_ymouse += 8) ; } ;  
};  
onMouseUp = function () {  
onMouseMove = null;  
};  
}
