0 Replies Latest reply on Jun 25, 2007 5:04 PM by sneakyimp

    Is there any way to mimic a Fatal Error in Actionscript?

    sneakyimp Level 2
      One thing I've noticed about Flash is that there doesn't appear to be any way to throw a fatal error in Actionscript. If I want my flash application to halt completely in a given situation, there's not really anything I can do to stop all code execution is there? Also, is there any sort of modal dialog (like an Alert() message in Javascript) in Flash? At the very least, it would be nice to stop everything and send the user a message they can't ignore when my code fails.

      This is made more difficult by the fact that I'm trying to write some Actionscript class files -- they don't have any library items associated with them that I can depend on for user interface elements.

      Any suggestions about how to STOP ALL CODE EXECUTION and send a MODAL DIALOG MESSAGE to the user would be *much* appreciated.