Lab Handle Events
Create scripts that do these things 10pts total:
- Create 4 targets on the screen that represent 4 four things of your choice. Colors, seasons of the year, items, etc. The targets can be buttons, plain text, or thumbnail images. These cannot be from the example in class. 2pts.
- When rolling over these targets, change an image on the screen to represent the target you have rolled over. The image being swapped should not move jitter when changing the images. Best way to do this is to use images that are the same dimensions. 3pts.
- Create text on the screen that shows the current X and Y coordinates of the mouse. When the mouse is moved around on the screen, the coordinates should update immediately. 2pts.
- Create text on the screen that shows if a mouse button is being clicked. 3pts.
Assignment is due one week from when it was assigned. 50% penalty if late.
|