You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly.
You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly.

There are two ways to center a window.
1. When creating window, you can assign
trueto thecenterproperty ofWindowInitOptions.import com.asyncria.windowsystem.WindowInitOptions;
var initOptions:WindowInitOptions = new WindowInitOptions;
initOptions.center = true;
var window:Window = new Window(initOptions);
2. After window creation, just call
centermethod ofWindowobject.window.center();