包 | flash.display |
类 | public final class StageOrientation |
继承 | StageOrientation Object |
语言版本: | ActionScript 3.0 |
运行时版本: | AIR 2 |
相关 API 元素
flash.display.Stage.orientation
flash.display.Stage.setOrientation()
flash.display.Stage.deviceOrientation
flash.events.StageOrientationEvent.afterOrientation
flash.events.StageOrientationEvent.beforeOrientation
flash.display.Stage.setOrientation()
flash.display.Stage.deviceOrientation
flash.events.StageOrientationEvent.afterOrientation
flash.events.StageOrientationEvent.beforeOrientation
公共常量
常量 | 由以下参数定义 | ||
---|---|---|---|
DEFAULT : String = "default" [静态]
指定舞台当前位于设备的默认方向(正面向上)。 | StageOrientation | ||
ROTATED_LEFT : String = "rotatedLeft" [静态]
指定舞台当前相对于默认方向向左旋转。 | StageOrientation | ||
ROTATED_RIGHT : String = "rotatedRight" [静态]
指定舞台当前相对于默认方向向右旋转。 | StageOrientation | ||
UNKNOWN : String = "unknown" [静态]
指定设备尚未确定方向。 | StageOrientation | ||
UPSIDE_DOWN : String = "upsideDown" [静态]
指定舞台当前相对于默认方向向下翻转。 | StageOrientation |
常量详细信息
DEFAULT | 常量 |
public static const DEFAULT:String = "default"
语言版本: | ActionScript 3.0 |
运行时版本: | AIR 2 |
指定舞台当前位于设备的默认方向(正面向上)。
ROTATED_LEFT | 常量 |
public static const ROTATED_LEFT:String = "rotatedLeft"
语言版本: | ActionScript 3.0 |
运行时版本: | AIR 2 |
指定舞台当前相对于默认方向向左旋转。
注意:当设备的方向向左旋转时,舞台方向必须向右旋转,以保持直立。
ROTATED_RIGHT | 常量 |
public static const ROTATED_RIGHT:String = "rotatedRight"
语言版本: | ActionScript 3.0 |
运行时版本: | AIR 2 |
指定舞台当前相对于默认方向向右旋转。
注意:当设备的方向向右旋转时,舞台方向必须向左旋转,以保持直立。
UNKNOWN | 常量 |
public static const UNKNOWN:String = "unknown"
语言版本: | ActionScript 3.0 |
运行时版本: | AIR 2 |
指定设备尚未确定方向。当设备平放在桌子上并且应用程序初始化时,会出现此状态。
UPSIDE_DOWN | 常量 |
public static const UPSIDE_DOWN:String = "upsideDown"
语言版本: | ActionScript 3.0 |
运行时版本: | AIR 2 |
指定舞台当前相对于默认方向向下翻转。
Tue Jun 12 2018, 11:04 AM Z