On 27/9/05 6:14 pm, "arjen" <[EMAIL PROTECTED]> wrote:
> some of the lingo in a handler doesn't get excecuted.
> director just exits the handler without any error, and continues
> running.

Hi Arjen,

Where does the event originate?  If it originates in an xtra (Multiuser,
Flash, TreeView, OSControl, ...) then Director simply aborts the handler
without giving an error message.

If this corresponds to what you are seeing then you could work around this
as follows:

1. In the event handler called by the xtra, set a flag
2. Use a regular Director event (#enterFrame, #exitFrame, ...)
   to check if the flag is set,  and if so, to call the handler
   that runs your process.

OR

1. In the event handler called by the xtra, create a
   timeOut object with a period of 1, set to call the
   handler that runs your process.
2. In the handler that runs your process, forget() the
   timeOut object

In both cases, you will have to save any parameters sent by the xtra as
properties (or globals), so that they are still available when the real
handler runs.

Does this help?

James

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to