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