Skip to main content
Inspiring
May 7, 2012
Question

Force landscape view

  • May 7, 2012
  • 3 replies
  • 943 views

I am creating an Flex Mobile App that is mostly portrait. I do have a few views I need to be landscape. In design view I choose landscape but when viewed in simulator/device it shows as portrait. Is there a property or something I can set on the view to force it to be landscape?

This topic has been closed for replies.

3 replies

SunilRana_Gateway
Inspiring
May 8, 2012

Hi James,

Go to Edit in  Your Application-app.xml in your mobile project

<aspectRatio>landscape</aspectRatio>

This will opens your mobile application in "landscape" Orientation

Thanks,

Sunil Rana

Adobe Employee
May 8, 2012

You can also use Stage.setAspectRatio in case you want to easily support both orientations of a particular aspect ratio.