Simple Socket Saga
Phil Davis
revdev at pdslabs.net
Fri Jul 31 21:37:32 EDT 2009
J. Landman Gay wrote:
> Phil Davis wrote:
>> len-morgan at crcom.net wrote:
>>> Actually, I think the opposite is true: If the callback script is
>>> NOT in
>>> the button script, it won't ever fire. At least that's the way I
>>> read the
>>> docs.
>>>
>>
>> My bad - you're right. That was my habit speaking. ;-) I habitually
>> place callback handlers further down the message path from the object
>> whose script opened the connection. But the docs say:
>>
>> The callbackMessage is sent to the object whose script contains the
>> accept command.
>
> There's nothing to keep it from passing through the button, to the
> card, to the stack though, right? Seems like your way should work as
> well.
>
Right, and it does work. The message path is a wonderful thing. I was
thinking that the callback message gets sent to the card or stack, but no.
Thanks Jacque -
Phil
More information about the use-livecode
mailing list