-- NOTES:
--  When the on alertHook handler is called, it should return a value:
--  Return Value   Projector Mode Results               Authoring Mode
-- -1 shows a stop/continue dialog box halts the movie (no dialog box) -- 0 default shows a stop/continue dialog box presents an error message, halts the movie -- 1 continues the movie, no dialogs brings up the script or debug window -- 2 quits brings up the script or debug window


----------------------------------------
on alerthook me, tError, tMessage, sType
  --------------------------------------
  -- sType is a symbol that can have 1 of these 4 values:
  --   #alert - causes the handler to be triggered by the alert command.
-- #movie - causes the handler to be triggered by a file not found error while perforoming a go to movie command.
  --   #script - causes the handler to be triggered by a script error.
-- #safeplayer - causes the handler to be triggered by a check of the safePlayer property.
  --------------------------------------

end

At 07:01 AM 12/2/2005, Valentin Schmidt wrote:
hi alex,

thanx for your feedback, and for the fake message window miaw. it's a neat little tool - although I havn't fully understood it yet, need more time to analyse - disassemble - deconstruct it :-)

btw. I didn't find a way around this specific problem. I thought
catching a script error with the alerthook would prevent my movie to
stop execution, if my alert handler returns true, but that doesn't
seem to be the case. but maybe there is just some tricky part I am
missing.

AFAIK, in the authoring environment an error will, unfortunately, ALWAYS halt the movie. Here what I found in my "private archives":

alertHook return value:

 Return   Effect in Director                              Effect in Projector
-1 Halt the movie, no error dialog Present Stop/Continue dialog 0 Halt the movie, present error dialog Present Stop/Continue dialog 1 Halt the movie, present debugger Movie continues running, no alert
    2        Halt the movie, present the script      Quit the Projector

cheers,
valentin
[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!]

-----------
Roy Crisman
Macromedia Director Programmer, Lingo Guru, Multimedia Producer, Engineering Manager
150 Laidley St #1
San Francisco, CA  94131-2754
(415)568-2939 work
(415)695-1972 home
(585)615-2873 cell
http://www.brokenoffcarantenna.com/
roymeo(AT)brokenoffcarantenna.com

[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