Packageflash.display
Classpublic final class StageAspectRatio
InheritanceStageAspectRatio Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.0

The StageAspectRatio class provides values for the Stage.setAspectRatio() method.

See also

flash.display.Stage.setAspectRatio()


Public Methods
 MethodDefined By
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
  AIR-only ANY : String = "any"
[static] Specifies a device orientation that supports both portrait and landscape UI.
StageAspectRatio
  AIR-only LANDSCAPE : String = "landscape"
[static] Specifies a device orientation that presents a landscape UI.
StageAspectRatio
 Inheritedlength : int = 1
[static]
length
  AIR-only PORTRAIT : String = "portrait"
[static] Specifies a device orientation that presents a portrait UI.
StageAspectRatio
Constant Detail
AIR-only ANYConstant
public static const ANY:String = "any"

Language Version : ActionScript 3.0
Runtime Versions : AIR 3.3

Specifies a device orientation that supports both portrait and landscape UI. Requires SWF version 16 or higher.

AIR-only LANDSCAPEConstant 
public static const LANDSCAPE:String = "landscape"

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.0

Specifies a device orientation that presents a landscape UI.

AIR-only PORTRAITConstant 
public static const PORTRAIT:String = "portrait"

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.0

Specifies a device orientation that presents a portrait UI.