0 Replies Latest reply on Sep 12, 2006 8:24 AM by Jason&Laura

    Alert.show causing IE to crash

    Jason&Laura
      I have an alert that I want to show as a confirmation to exit my application. The alert works fine in Firefox, however when I run it in IE the application and IE crashes hard.

      Below is the code I tried:

      public function exitClick():void {
      Alert.show("Are you sure you want to exit Application?", "Exit Application", 3, null, exitPinpoint, iconExit);
      }

      The code below works fine, it just puts an ok rather than the YES NO that I want.

      public function exitClick():void {
      Alert.show("Are you sure you want to exit Pinpoint?", "Exit Pinpoint");
      }

      After messing with this for an hour or so, the crashing is dependant on placing some button other than ok in the alert. I tried many variations of instantiating an alert and all of them failed miserably. I also wrote a smaller test application and added an alert that worked just fine?

      I copied the popup manager code into my project and it was failing on the line in the middle...
      This code is in the AddPopup method of the PopupManager Class:

      children = topMost ? sm.popUpChildren : sm;
      children.addChild(DisplayObject(window));
      window.visible = false; Text

      Any help / ideas on how to resolve this would be greatly appreciated.