2 Replies Latest reply on Sep 5, 2010 9:22 PM by Flex harUI

    How to remove "an actionscript error has occured"

    re-Flexing Level 1

      Hi everyone,

      I want to remove the box that keeps on popping up every time an actionscript error has occured.

       

      error.png

      This is the box that I'm trying to tell you.

       

      I already tried try catchs statement but still this always pops up.

      I want to replace that box into an Alert.show() so that the user will somehow understand the error.

      How will I do that?

       

      This is my code when I tried Try Catch statement

      try{

      //this is where my code is

      }

      catch(e:Error){

      Alert.show("An error has occured","Admin says");

      }

       

      Hoping for a reply.