I am trying to center a launched window in flex, there is a NativeWindow.x and NativeWindow.y but flex uses the Window class which does not have these properties, so does anyone know how to center a window? Thanks!!
I figured it out:
window.nativeWindow.x = (Screen.mainScreen.bounds.width - window.width)/2;
window.nativeWindow.y = (Screen.mainScreen.bounds.height - window.height)/2;
I think you have to call this AFTER window.open() though.