In the button that selects the dropper tool:
Code: Select all
on mouseUp
lock cursor
set the cursor to 1005
end mouseUp
Code: Select all
on mouseUp
if the cursor is 1005 then
put the mousecolor -- or into a variable
set the cursor to empty -- restores the default
unlock cursor
else
pass mouseUp
end if
end mouseUp
Since your graphics are a single color, getting the backgroundColor should be fine. The mouseColor will return the exact pixel color under the mouse, which is useful for images with multiple colors. Either way will work in this case.
If you will need different cursors for different tools, expand the card handler to account for each. This method assumes that none of the graphics have mouseUp handlers; if they do, pass the mouseUp in the graphic so the card handler will get it.