Asking the impossible

Scott Rossi scott at tactilemedia.com
Mon Dec 9 01:24:09 EST 2013


Sorry, the last line should have read:
  
  get intersect(grc "marker",img "source","pixels")


Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 12/8/13 10:21 PM, "Scott Rossi" <scott at tactilemedia.com> wrote:

>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
>theOffset
>   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.
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, UX/UI Design
>
>
>
>
>On 12/8/13 9:03 PM, "J. Landman Gay" <jacque at hyperactivesw.com> 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
>>area.
>>
>>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 hyperactivesw.com
>>HyperActive Software           |     http://www.hyperactivesw.com
>>
>>_______________________________________________
>>use-livecode mailing list
>>use-livecode at lists.runrev.com
>>Please visit this url to subscribe, unsubscribe and manage your
>>subscription preferences:
>>http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode
>






More information about the Use-livecode mailing list