Skip to main content
Inspiring
May 7, 2012 6:03 PM UTC
Question

Force landscape view

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

SunilRana_Gateway
Inspiring
May 8, 2012 6:22 AM UTC

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

Translate
Adobe Employee
May 8, 2012 4:59 AM UTC

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

Translate