Insert into back script logic

Sarah Reichelt sarah.reichelt at gmail.com
Fri Mar 31 21:23:50 EST 2006


> I am asking this time since I don't have a moment to spare before Sat AM.
>
> I want to implement a design change into a rather complex program that uses
> one card in one stack.
>
> The question:
> Does the following
>     insert the script of this card into back
>
> mean that the card script at the card level will also be in the hierarchy
> trapping messages as well as in the back, or
>
> by inserting it into the back, this becomes its one-and-only position?
>
> If there is a send "sumptin" to card 1, does this trigger twice?

Hi Jim,

I don't know for sure, but I would be worried that your card handlers
might be triggered twice. I would recommend putting them into a
separate button and inserting the button's script into back. That way
you can be sure it is only in the hierarchy once.

Cheers,
Sarah



More information about the use-livecode mailing list