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

Variables

inline read 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.

inline read 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.

inline read 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.

inline read 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.