Setting script in object not working...

Mike Bonner bonnmike at gmail.com
Wed Mar 21 21:47:45 EDT 2012


With the mouseup handler at the grouplevel, you can look at 'the target' to
determine which image has been clicked.

>> The question is how to determine the image below the mouse when the user
does click?


On Wed, Mar 21, 2012 at 6:48 PM, Glen Bojsza <gbojsza at gmail.com> wrote:

> I tried a variation of that but for some reason the images aren't taking
> the script consistently?
>
> It's like the images sometimes work when they do get a script and other
> times it takes several clicks before the script is executed?
>
> I was thinking if there was a way to determine if the user clicks over an
> image that is in a group and possible set a script in the group. This would
> eliminate scripts limitations and any other possible issues.
>
> I am not sure how to approach this... the group scrolls when there are more
> images that can be seen on the screen but I don't think a mouseUp script
> for the group is trapped on the scroll bar so that should be fine.
>
> The question is how to determine the image below the mouse when the user
> does click?
>
>
>
> On Wed, Mar 21, 2012 at 6:23 PM, Mike Bonner <bonnmike at gmail.com> wrote:
>
> > Might set up a hidden image object with the script already there and just
> > clone or copy it. That way you don't have to worry about whether its a
> > scriptlimits issue if nothing else.
> >
> >
> _______________________________________________
> 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