2 Replies Latest reply on Mar 19, 2009 12:30 PM by FrankG ATL

    Alert.show error

    FrankG ATL

      I have an Alert.show statement in a handler that is giving me an Implicit coercion of value error (1067). I can't find the problem in the code. The line where the error exist is marked below.

      Does anyone see the problem?


        • 1. Re: Alert.show error
          public function handleDelete() : void
          Alert.show("Delete Filter?","Confirm" (Alert.OK | Alert.CANCEL),
          null, null); // this is the line with the error

          I changed alertCloseHandler to null, and it has no error any more.
          It could mean you can not use such varible here, please double check it.
          • 2. Re: Alert.show error
            FrankG ATL Level 1
            Your right that worked. So I looked at it again and found there was a missing coma after "Confirm".

            Alert.show("Delete Filter",
            "Confirm", (Alert.OK | Alert.CANCEL),
            null, alertCloseHandler);