Skip navigation
sadensmol
Currently Being Moderated

Window.open() dont show window

Aug 10, 2012 5:04 AM

Tags: #air #flex #window

Hello!

 

I just created simple application for showing wnidow onTop by event from server.

 

When main application in not active ( no focus ) window not appeared ( even creationComplete event not handles ).

 

Can you help me and advise?

 

Create window method is simple:

     wot = new UsersViewOnTopWindow();

     wot.open(false);

     wot.activate();

 

UsersViewOnTopWindow is

     <s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"

                          xmlns:s="library://ns.adobe.com/flex/spark"

                          xmlns:mx="library://ns.adobe.com/flex/mx"

                          alwaysInFront="true"

                          showStatusBar="false"

                          maximizable="false"

                          minimizable="false"

                          resizable="false"

                          systemChrome="standard"

                          type="{NativeWindowType.UTILITY}"

                          focusEnabled="false"

                          visible="true"

 
Replies
  • Currently Being Moderated
    Aug 10, 2012 9:45 AM   in reply to sadensmol

    Did you verify your handler actually is getting called?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 3:22 PM   in reply to sadensmol

    Check size and position

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2012 10:25 PM   in reply to sadensmol

    Set a breakpoint on LayoutManager.doPhasedInstantiation.   It should get called 3 to 12 times then creationComplete should fire.  If it keeps getting called over and over then you are in a “invalidation loop” where the window cannot figure out what size it should be.  Try locking down the size of the windor or its components to help resolve the sizes.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points