PDA

View Full Version : app scale to monitor/display size


davej
08-07-2009, 03:53 PM
Is there any way to get an air app to automatically scale to the display size.

bfinleyui
08-11-2009, 02:09 PM
// Set to the width and height of your screen
stage.stageWidth = Capabilities.screenResolutionX;
stage.stageHeight = Capabilities.screenResolutionY;

// Put it in the corner, so it's not hanging off the side
stage.nativeWindow.x = 0;
stage.nativeWindow.y = 0;

You'll probably also want to set some type of scale mode.