1 Reply Latest reply on Nov 27, 2007 8:12 AM by robdillon

    unseen alert box

    Ahjin
      Hello helpers,

      I need to know the possible reasons about the Alert box problem.
      Actually, I just use a normal Alert code as follows:

      ---------------------------------------------------------------------------------
      import mx.controls.Alert;

      function callAlert(msg):Void {
      Alert.buttonHeight = 22;
      Alert.buttonWidth = 50;
      var alertbox:Alert = Alert.show(msg,"Message");
      alertbox.setSize(250, 100);
      }

      nextButton.onRelease = function() {
      if(reviewBox.selectedIndex == 0) {
      var msg98:String = "Please choose experiment";
      callAlert(msg98);
      }
      else {
      ....
      }
      ---------------------------------------------------------------------------------

      The current problem is that it doen't seem to work. I can not see the alert box on the window.

      Thank you for your help.