启动时我想检查设备是纵向还是横向模式,到目前为止我有:
var startOrientation:String = stage.orientation;
trace('startOrientation: '+ startOrientation);
if (startOrientation == "default")
{
}
if (startOrientation == "upsideDown")
{
}
但这并不能告诉我它是风景还是肖像。