0 Replies Latest reply on May 6, 2011 1:01 PM by alazarincrimson

    How to (re) take fullscreen when AIR app is restored from dock/task bar?


      Porting an AS3 app to AIR -- learning AIR as I go.


      Switched to AIR because we need to minimize our app to taskbar/dock -- works nicely.


      But when I listen for Event.ACTIVATE and then try to NativeWindow.maximize(), it doesn't work.


      Found the bug thread with the workaround (http://forums.adobe.com/message/3251136), which is to listen to the display stage change and if the current window stage is NORMAL then to maximize.


      stage.nativeWindow.addEventListener(NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGE, onDisplayStateChange);
      public function onDisplayStateChange(evt:NativeWindowDisplayStateEvent):void
           if (evt.afterDisplayState == NativeWindowDisplayState.NORMAL)


      Is this still best option?


      Also, when I maximize() using the above technique on the Mac the menubar is still visible.  How to get back to fullscreen?