Toggle, Drag and Snap, and Drag Mask

How the completed file works:

File #1: Toggle a flashlight on and off

Click on the flashlight. If it is already on, then turn off the light. Otherwise, turn the light on.


File #2: Drag and snap to a grid

Click and drag the battleship. Upon mouse up, it snaps to the closest grid point.

 

File #3: Drag mask

Click and drag the x-ray mask.