The StageScaleMode class provides values for the Stage.scaleMode property.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyEXACT_FIT:StageScaleMode = 0

Specifies that the entire application be visible in the specified area without trying to preserve the original aspect ratio. Distortion can occur.

@:value(cast 1)@:impl@:enuminlineread onlyNO_BORDER:StageScaleMode = 1

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.

@:value(cast 2)@:impl@:enuminlineread onlyNO_SCALE:StageScaleMode = 2

Specifies that the size of the application be fixed, so that it remains unchanged even as the size of the player window changes. Cropping might occur if the player window is smaller than the content.

@:value(cast 3)@:impl@:enuminlineread onlySHOW_ALL:StageScaleMode = 3

Specifies that the entire application be visible in the specified area without distortion while maintaining the original aspect ratio of the application. Borders can appear on two sides of the application.