4 Replies Latest reply on Oct 30, 2008 5:59 PM by yancaoshi

    How to popup a centered window from a custom component?

      Hi everyone:

      Please take a look at the attached code especially the following line:
      var poppedWindowoppedWindow = PoppedWindow( PopUpManager.createPopUp(this, PoppedWindow, true) );

      Application pops up a window centered the custom component, but not the whole application screen. On the above line, I tried to use this.root and this.stage instead of this. But it gives a null error of root and stage during runtime.

      Would anybody tell me how to correct this? Many thanks!