stack scrips and card scripts
Dar Scott
dsc at swcp.com
Wed Mar 10 19:21:11 EST 2004
On Wednesday, March 10, 2004, at 04:07 PM, Douglas Mackay wrote:
> what is the differnce between stack scripts and card scripts , why do
> some scripts have to written in the stack script and some in the card
> script
The stack is in the path of the cards, so often handlers can be written
either place.
You can put common handlers shared by all cards (and all controls on
cards) in the stack script.
Usually card specific handlers are put in the card script.
Card messages are sent to the card. System stack messages are often
sent to the first card. Often they are handled in a card script to
avoid message path problems if the stack is in the message path for
other objects.
The startup handler has to be in the card script or the stack script, I
forgot which.
Dar Scott
More information about the use-livecode
mailing list