2 Replies Latest reply on Jun 16, 2009 9:19 AM by leybniz

    Customizing Error Messages

    lmcrun19 Level 1

      I have a button in my a application. If the user presses the button before the application has finished loading they recieve an actionscript error. Is there a way to customize the error message so the user can recieve my personal error message instead of the actionscript one. Thanks.

        • 1. Re: Customizing Error Messages
          John Hall Level 4

          Not sure of your specific issues but you could make the visible of the button false until application complete and in your app tag have something like


          applicationComplete = "myButton.visible = true"

          1 person found this helpful
          • 2. Re: Customizing Error Messages
            leybniz Level 4

            direct answer - no you can't customize exceptions globally,

            but you could wrap most suspicious code using

            try {} catch (e:Errot) {};

            caught an error and handle it manually.


            BTW: Exceptions will pops up from content debugger FP only, on production FP your application will silently fail and in most cases stop to behave as expected, so your super aim is to avoid any exceptions in your code, if you care about proper functioning


            If you feel this message answers your question or helps, please mark it respectively