Center Window

This sample shows how to center a window on the primary monitor, and to stretch a window to fill the screen.

mProjector has commands to simplify common window sizing and positioning tasks. mProjector windows retain Stage scale and alignment properties. The mWindow.center() command centers the app on the primary monitor. The mWindow commands mWindow.setSizeToFullscreen() and mWindow.setSizeToWorkArea() take scaleMode and align arguments.

You can download this sample, "Fullscreen and Center", from the mProjector Samples page -- /software/flash-projector/flas.html#fullscreenAndCenter.