xbury.cs at clearstream.com
xbury.cs at clearstream.com
Tue Feb 8 04:38:01 CST 2005
I didn't know the hierarchy was such a "mess" ;))
Just kidding! I'll have to think this over...
On 08.02.2005 11:12:54 use-revolution-bounces wrote:
>Recently, xbury.cs at clearstream.com wrote:
>>>> I have a field script with a keydown event
>>>> which responds to keys typed in a field and
>>>> which checks for pretyping using a handler.
>>>> I also have a frontscript (XOS) with a generic
>>>> pretype handler of the same name.
>>>> What is abnormal is that when the keydown event
>>>> calls the pretyping handler, the frontscript is
>>>> the one that takes priority and not the handler
>>>> in the same script!
>>>> This busts completely the local overide principle
>>>> in scripts... And the hierarchy of events...
>>> If I understand you correctly, I would think the behavior is correct.
>>> a frontscript wasn't triggered first, why would you bother having
>>> frontscripts at all?
>> The question is rather how do you overide a frontscript?...
>> In general and in most situations a local item overides a global
>> If i have a card script and an equal stack (or bg) script, the card
>> is the
>> first to run...
>> Maybe I got the frontscript wrong... And that script shouldn't be there
>> but still im surprised of the behavior...
>Without knowing exactly what you're doing, I wonder if perhaps you need
>look at the message hierarchy differently. Frontscripts were designed to
>intercept messages before they are passed to any object. I don't believe
>there is any way to override a frontscript, but you can remove the script
>from the message hierarchy which should effectively accomplish the same
>thing, and then re-insert the script as needed.
>Alternatively, you could have the bulk of your scripts stored in a
>backscript or library, and then have scripts in specific controls which
>override the backscripts by default. This might be closer to what you
>You might want to take a look at this diagram to better understand the
>Tactile Media, Development & Design
>E: scott at tactilemedia.com
>use-revolution mailing list
>use-revolution at lists.runrev.com
Visit us at http://www.clearstream.com
IMPORTANT MESSAGE Internet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message. The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries. END OF DISCLAIMER
More information about the use-livecode