1 Reply Latest reply on Mar 10, 2011 1:44 PM by DBarranca

    Alert dialog shows in the wrong place

    DBarranca Level 4

      Hello,

      I've an extension (based on <csxs:CSXSWindowedApplication>) that opens a Window component called Info:

       

      public function myDoAbout():void{
           var window:Window = new Info();
           if(window){
           window.type = CSXSWindowType.MODAL_DIALOG;
           window.width = 400;
           window.height = 630;
           window.resizable = false;
           window.open();
           }
      }
      

       

      That's fine. Whithin this window, there's a button that launches an Alert dialog:

       

      Alert.show("Message in a bottle", "Extension Alert Title", Alert.OK, Sprite(mx.core.Application.application));
      
      

       

      The problem is that the Alert dialog shows not within that window, but inside the (parent) extension.

      What's the correct syntax for the optional but mandatory fourth parameter in the Alert.show() to make the dialog shows in the correct place?

      Thanks

       

      Davide