Flash Lite 2.x and 3.0 ActionScript Language Reference

screenOrientation (capabilities.screenOrientation property)

public static screenOrientation : String [read-only]

This member variable of the System.capabilities object that indicates the current screen orientation.

Possible values for screenOrientation property:

  • normal the screen is in its normal orientation
  • rotated90 the screen is rotated by 90 degrees
  • rotated180 the screen is rotated by 180 degrees
  • rotated270 the screen is rotated by 270 degrees

Example

The following example traces the value of this read-only property:

trace(System.capabilities.screenOrientation);