Ensures that the application has the same internal width and height on all devices, while scaling it larger or smaller to fit within the bounds of the stage. The application may be letterboxed on some screens, which means that there may be some empty space on the top and bottom, or on the left and right, of the application's bounds within the window. The application will always be centered within the stage bounds.

The following example creates a LetterboxScaleManager with an original width value of 960.0 and an original height value of 640.0:

var manager = new LetterboxScaleManager(960.0, 640.0);
application.scaleManager = manager;
Available since

1.0.0

.

See also:

Constructor

new(originalWidth:Float, originalHeight:Float)

Creates a new LetterboxScaleManager object.

Available since

1.0.0

.

Variables

@:bindable("change")originalHeight:Float

The scale manager's original height value that will be scaled to fit within the stage dimensions.

Available since

1.0.0

.

See also:

@:bindable("change")originalWidth:Float

The scale manager's original width value that will be scaled to fit within the stage dimensions.

Available since

1.0.0

.

See also:

@:bindable("change")target:DisplayObject

Methods