Skip to main content
Participant
May 29, 2015 10:39 PM UTC
Answered

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

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.
itlancer
itlancerCorrect answer
Inspiring
May 30, 2015 7:49 AM UTC

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 7:49 AM UTC

Hi,

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

NativeApplication.activeWindow.maximize();

Translate
Participant
May 30, 2015 3:54 PM UTC

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

Roger

Translate
itlancer
Inspiring
May 31, 2015 8:44 AM UTC

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;

Translate