I'm using alertHook to catch and log errors in Shockwave.
When it returns 0 the user is also presented with a Director Player
Error alert that includes some additional information beyond what
is passed in the parameters to alertHook. For example, when I
trigger an error by calling a handler that doesn't exist, alertHook
gets the message "Handler not defined" but the Director Player
Error alert includes the name of the handler.
This is important information when debugging. Is there any
way to capture the text in the Director Player Error alert?
I keep a stack trace by popping handler names onto a list,
and save a debug message at the start of suspicious code blocks.
Here's the code for my alertHook():