Then read the API doc for the method you want to use and see what it requires.
Type: Posts; User: Norm
Then read the API doc for the method you want to use and see what it requires.
Who are you giving the point's location to? That should determine how you specify its values.
You need to do what the methods require.
Did you try this:
Take a piece of paper and draw the screen and the rectangle and see how to convert the x,y values from one to the other. The screen's x,y will be the rectangle's location x,y plus...
Read the API doc for the mouseMove method. Does where do the x,y parameters refer to?
You may have to compute the x,y relative to the rectangle given the rectangle's location on the screen. Take...
The computer executes the statements in the order they are placed in the program. This is a VERY BASIC concept.
If you don't understand that, you are going to have a very hard time writing programs....
Where is the variable image defined? It looks like it is defined AFTER you try to use it.
Define it BEFORE you try to use it.
Think of it this way: If you went into a bank and tried to withdrawn...