Hola,
también puedes usar bounds y visibleBounds de la clase Screen.
Con bounds puedes centrar la aplicación en la pantalla:
Código ActionScript :
stage.nativeWindow.x = (Screen.mainScreen.bounds.width - stage.nativeWindow.width) / 2;
stage.nativeWindow.y = (Screen.mainScreen.bounds.height - stage.nativeWindow.height) / 2;
Y con visibleBounds puedes centrarla en el área visible de la pantalla (excluyendo la barra de tareas en Windows, o el dock en Mac):
Código ActionScript :
stage.nativeWindow.x = (Screen.mainScreen.visibleBounds.width - stage.nativeWindow.width) / 2;
stage.nativeWindow.y = (Screen.mainScreen.visibleBounds.height - stage.nativeWindow.height) / 2;