What Just got Clicked 2 - Who Sent The Message

Scott Rossi scott at tactilemedia.com
Sat Aug 27 02:28:20 EDT 2005


>> I have a button that sends a message to the card and executes a script in
>> the card script.  When the script is done, I'd like to send a "done" message
>> back to the button, or to any other object that calls the card script.  Is
>> the executionContexts function the right way to go about this, or is there
>> another method to determine which control sends a message to another?

> how about appending the target to the handler/function call, that way it
> knows where to 'send done' back to.

Thanks Chipp.  I thought about that method, but was wondering if the
executionContexts gives you that for free (of course there is a bit of
parsing to do).  Or is it better not to rely on this (last I heard it was
undocumented) function.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com




More information about the use-livecode mailing list