API Docs for: 最后更新日期:2014年8月25日
Google搜索   
Show:

LStageAlign Class

Available since 1.8.6

The LStageAlign class provides constant values to use for the Stage's align property.

Constructor

LStageAlign

() public

Defined in display/LStageAlign.js:1

Available since 1.8.6

Example:

LInit(50, "legend", 240, 240, main);
function main () {
    LGlobal.align = LStageAlign.BOTTOM_MIDDLE;
    LGlobal.stageScale = LStageScaleMode.NO_SCALE;
    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);
}

Item Index

Properties

Properties

BOTTOM

String public static

Defined in display/LStageAlign.js:34

Available since 1.8.6

[static] Specifies that the Stage is aligned at the bottom.

BOTTOM_LEFT

String public static

Defined in display/LStageAlign.js:88

Available since 1.8.6

[static] Specifies that the Stage is aligned in the bottom-left corner.

BOTTOM_MIDDLE

String public static

Defined in display/LStageAlign.js:106

Available since 1.8.6

[static] Specifies that the Stage is aligned in the bottom-middle corner.

BOTTOM_RIGHT

String public static

Defined in display/LStageAlign.js:97

Available since 1.8.6

[static] Specifies that the Stage is aligned in the bottom-right corner.

LEFT

String public static

Defined in display/LStageAlign.js:43

Available since 1.8.6

[static] Specifies that the Stage is aligned on the left.

MIDDLE

String public static

Defined in display/LStageAlign.js:115

Available since 1.8.6

[static] Specifies that the Stage is aligned in the middle corner.

RIGHT

String public static

Defined in display/LStageAlign.js:52

Available since 1.8.6

[static] Specifies that the Stage is aligned on the right.

TOP

String public static

Defined in display/LStageAlign.js:25

Available since 1.8.6

[static] Specifies that the Stage is aligned at the top.

TOP_LEFT

String public static

Defined in display/LStageAlign.js:61

Available since 1.8.6

[static] Specifies that the Stage is aligned in the top-left corner.

TOP_MIDDLE

String public static

Defined in display/LStageAlign.js:79

Available since 1.8.6

[static] Specifies that the Stage is aligned in the top-middle corner.

TOP_RIGHT

String public static

Defined in display/LStageAlign.js:70

Available since 1.8.6

[static] Specifies that the Stage is aligned in the top-right corner.