2 Replies Latest reply on Sep 16, 2010 9:22 AM by Mark Robbins 312

    issue maximizing air app to fullscreen on a Mac

    madhooper Level 1

      My code works fine for PC but on a mac the code doesn't work. Here's the code:


      package com.wb.thehub.control.commands
          import com.adobe.cairngorm.commands.ICommand;
          import com.adobe.cairngorm.control.CairngormEvent;
          import com.wb.thehub.model.ModelLocator;
          import flash.display.NativeWindow;
          import flash.display.NativeWindowDisplayState;


          public class MaximizeApplicationCommand implements ICommand
              public function execute(event:CairngormEvent):void
                  var nativeWindow:NativeWindow=ModelLocator.instance.mainWindow.nativeWindow;
                  if(nativeWindow.displayState == NativeWindowDisplayState.MAXIMIZED){
                  }else nativeWindow.maximize();


      On a Mac the app simply moves to the upper left corner of the screen. The restore works fine. My app is set to chromeless and transparent.


      As anyone else had this problem?