LStageAlign Class
The LStageAlign class provides constant values to use for the Stage's align property.
Constructor
LStageAlign
()
public
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
- BOTTOM static
- BOTTOM_LEFT static
- BOTTOM_MIDDLE static
- BOTTOM_RIGHT static
- LEFT static
- MIDDLE static
- RIGHT static
- TOP static
- TOP_LEFT static
- TOP_MIDDLE static
- TOP_RIGHT static
Properties
BOTTOM
String
public
static
[static] Specifies that the Stage is aligned at the bottom.
BOTTOM_LEFT
String
public
static
[static] Specifies that the Stage is aligned in the bottom-left corner.
BOTTOM_MIDDLE
String
public
static
[static] Specifies that the Stage is aligned in the bottom-middle corner.
BOTTOM_RIGHT
String
public
static
[static] Specifies that the Stage is aligned in the bottom-right corner.
LEFT
String
public
static
[static] Specifies that the Stage is aligned on the left.
MIDDLE
String
public
static
[static] Specifies that the Stage is aligned in the middle corner.
RIGHT
String
public
static
[static] Specifies that the Stage is aligned on the right.
TOP
String
public
static
[static] Specifies that the Stage is aligned at the top.
TOP_LEFT
String
public
static
[static] Specifies that the Stage is aligned in the top-left corner.
TOP_MIDDLE
String
public
static
[static] Specifies that the Stage is aligned in the top-middle corner.
TOP_RIGHT
String
public
static
[static] Specifies that the Stage is aligned in the top-right corner.