0 Replies Latest reply on Sep 15, 2009 11:46 AM by bk843746

    Air: Maximizing window on startup

    bk843746 Level 1

      Hi

       

      Why is NativeApplication.nativeApplication.activeWindow == null in the ApplicationComplete event?

       

      I tried to use this to maximize the window but since it's null, I could't use this method.

       

      I changed the code to the following and it worked?

       

      var openWindowArray:Array = nativeApplication.openedWindows;
                     
      // if there is an open window then maximize it
      if (openWindowArray.length == 1)
      {
           openWindowArray[0].maximize();
      }

       

      Why is activeWindow null? Is this a bug?

       

      I'm using Flex 3.

       

      Thanks