The script assigned to this particular controller does four things: every time that the movie clip enters the frame, or twelve times per second, it checks the x and y positions of the mouse and updates the values of variables mouseypos and mousexpos to reflect.
Then it uses an if statement to check and see if those values are within a certain range no less than a certain amount and no greater than another amount. What this is doing is checking to make sure that the mouse cursor is inside a certain area, defined by the pixel coordinates of the corners of the visible drawing area. When the mouse is inside the visible drawing area, we want to hide the mouse cursor and instead display the brush cursor movie clip that we made unless the help file or color palette are visible, as both overlap the main canvas area.
Thats what the next if statement tests for, using an if/else statement. If either is visible, then Mouse.show() displays the mouse. In all other situations, however, the else statement does the following:
Lastly, another else statement linked to the first if statement says that if all of those conditions arent met, the brush cursor should be moved to an area off the visible stage, and makes the mouse cursor visible again.


