Newbie question about image/button relationships
Gordon Tillman
got at mindspring.com
Mon Nov 22 14:03:47 EST 2004
Hi Jason,
On Nov 22, 2004, at 12:58, Silver, Jason wrote:
> Now, onto the issue. I have an image of a mobile phone keypad (in JPG
> format), and I would like for the user to be able to click on specific
> areas, causing changes to occur on the "screen" (which is a field). Is
> there a way to Revolution to watch for specific areas of the image to
> be
> pressed (such as the coordinates of a "Send" key, vs. the coordinates
> of
> an "End" key)? Keep in mind, this is only one image, not a bunch of
> images. If this is not possible, do I have to create a group of
> buttons
> on top of the image that are all set so they are not visible?
That is no problem at all. In your mouseUp handler you can invoke the
clickLoc() function to determine the coordinates of the last place the
mouse was clicked and then take the appropriate action.
--gordon
More information about the use-livecode
mailing list