LStageScaleMode Class
A value from the LStageScaleMode class that specifies which scale mode to use.
Constructor
LStageScaleMode
()
public
Example:
LInit(50, "legend", 240, 240, main);
function main () {
LGlobal.align = LStageAlign.BOTTOM_MIDDLE;
LGlobal.stageScale = LStageScaleMode.SHOW_ALL;
LSystem.screen(LStage.FULL_SCREEN);
var loader = new LLoader();
loader.addEventListener(LEvent.COMPLETE, loadBitmapdata);
loader.load("face.jpg", "bitmapData");
}
function loadBitmapdata (event) {
var bitmapdata = new LBitmapData(event.currentTarget);
var bitmap = new LBitmap(bitmapdata);
addChild(bitmap);
}
Properties
EXACT_FIT
String
public
static
[static] Specifies that the entire application be visible in the specified area without trying to preserve the original aspect ratio.
NO_BORDER
String
public
static
[static] Specifies that the entire application fill the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.
NO_SCALE
String
public
static
[static] Specifies that the size of the application be fixed, so that it remains unchanged even as the size of the player window changes.
SHOW_ALL
String
public
static
[static] Specifies that the entire application be visible in the specified area without distortion while maintaining the original aspect ratio of the application.