A Flash Paint Application
Combining Functions
Our next challenge is to get both of those functions, onMouseDown and onMouseMove to work in conjunction. We only want to call paint when the mouse is down and the mouse is moving. There's a solution below, but pay close attention to the details. Notice that the parenthesis following paint(); are removed:
OK, that little trick should do it: