Strange button

Sarah Reichelt sarah.reichelt at gmail.com
Wed Jul 15 19:17:43 EDT 2009


> I have a button that resides inside of a "background" group (on many cards).
> The group is script-less. The button has about 10 handlers and 350 lines of
> script. When I created the button, it worked fine once. But something in its
> script causes the button, from that point forward, not to trap a click.
> Instead, a click on it goes to the card. As a workaround I had to write a
> script at the card level sending a mouseUp back to the button. This works.
> Now, due to various circumstances, I have to fix this, but I have no idea
> what in the script could cause such (for me) unprecedented behavior. The
> script has no errors.
>
> If I create a brand new button (in the group) and transfer the script, it
> does the same thing — works once then becomes transparent to a click.
>
> All I am asking is: What KINDS of things should I be looking for? In
> general, what could make this happen?


I would check for a line in the script that is changing the layer of
the button or group so that it is being hidden underneath another
object.

Check the Application Browser to see where your button and it's group
before you click and again after you click and see if it changes.

HTH,
Sarah



More information about the use-livecode mailing list