Flex mobile app portrait landscape only single orientation

So guys there are times when you want your flex mobile application to be either in

  1. portrait
  2. landscape

The reason why we want to do it this way can be many. Lets see how its done

In your Adobe AIR Application Descriptor File XML file Look for XML element called initialWindow.

Under this element if not already uncommented, uncomment aspectRatio and autoOrients elements

For landscape use this

and for portrait use this


I hope this helps

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.