So guys there are times when you want your flex mobile application to be either in
- portrait
OR - 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
1 2 |
<aspectRatio>landscape</aspectRatio> <autoOrients>false</autoOrients> |
and for portrait use this
1 2 |
<aspectRatio>portrait</aspectRatio> <autoOrients>false</autoOrients> |
I hope this helps
Leave a Reply