Asking the impossible

Scott Rossi scott at
Mon Dec 9 01:21:52 EST 2013

Are you ready for a kludge?

You need the source image somewhere in your stack, and a 1x1 pixel graphic
named "marker" placed on top of the source image.  In your test script:

put formattedrect of the mouseCharChunk into theRect
   put mouseH() - item 1 of theRect, mouseV() - item 2 of theRect into
   set loc of grc "marker" to left of img "source" + item 1 of
theOffset,top of img "source" + item 2 of theOffset
   get intersect(grc "marker",img 1,"pixels")

This will test the intersection of the marker graphic with the
transparency of the image used as the image source.
As I said, a kludge, but seems to work here.


Scott Rossi
Creative Director
Tactile Media, UX/UI Design

On 12/8/13 9:03 PM, "J. Landman Gay" <jacque at> wrote:

>I think this can't be done, but just in case:
>I have a transparent field that contains only an imagesource. It sits
>over a larger image. I need to differentiate whether the user has
>clicked on the imagesource content of the field or on its transparent
>I know this can be done with a normal image object, but what about an
>imagesource? Mousecolor won't work, there will always be a mousecolor.
>Jacqueline Landman Gay         |     jacque at
>HyperActive Software           |
>use-livecode mailing list
>use-livecode at
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:

More information about the Use-livecode mailing list