On startup I want to check whether the device is in portrait or landscape mode, so far I have:
var startOrientation:String = stage.orientation;
trace('startOrientation: '+ startOrientation);
if (startOrientation == "default")
{
}
if (startOrientation == "upsideDown")
{
}
But this doesnt tell me if its landscape or portrait.