Most windows applications be needed to center on screen both vertically and horizontally, for AIR applications, we can use window.runtime.flash. system.Capabilities to do it. This class provides properties that describe the system and runtime that are hosting HTML content. We can provide appropriate content to as many users as possible by using the Capabilities. We can use code to alter its presentation when we know the conputer’s capabilities.
Use screen resolution and native window size properties to set desired coordinates, we can center our AIR application window.

