Skip to main content
Participant
May 29, 2015
Answered

Air app initial window width and length don't maximize automatically

  • May 29, 2015
  • 3 replies
  • 767 views

Dropbox - Screenshot 2015-05-29 15.35.16.png

Please take a look at the screenshot.  The app can be easily maximized when the user clicks the maximize button on the top bar, but I would like this to happen automatically. Using Flash Pro CC 2014 to build.  How can I make the application open the window to full screen automatically?

Thank you!

Roger

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer itlancer

Hi,

You can use NativeWindow maximize method for this: NativeWindow - Adobe ActionScript® 3 (AS3 ) API Reference

NativeApplication.activeWindow.maximize();

3 replies

itlancer
itlancerCorrect answer
Inspiring
May 30, 2015

Hi,

You can use NativeWindow maximize method for this: NativeWindow - Adobe ActionScript® 3 (AS3 ) API Reference

NativeApplication.activeWindow.maximize();

Participant
May 30, 2015

Thank you for this!  Could you tell me how I can make my application hide the Mac dock?

Roger

itlancer
Inspiring
May 31, 2015

I don't know how to hide Mac dock, but you can make your application fullscreen: Stage - Adobe ActionScript® 3 (AS3 ) API Reference

Stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;