Adobe Air - Flash - Initial window position

air, flash, window-position

Solution

Dont use these properties, just add code to your app:

stage.nativeWindow.x = (Capabilities.screenResolutionX - this.width)*0.5;
stage.nativeWindow.y = (Capabilities.screenResolutionY - this.height)*0.5;

Problem

I'm designing a desktop app with Adobe Flash CS6, using air 3.2 for desktop (in flash target setting). In air settings, there's an advanced tab which makes it possible to set the initial value for the position of the app's window. I don't know how I should set it to the middle of the screen. here's a screenshot:

Original source