Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Can I limit / force orientation changes in Air app?

$
0
0

I have an app that works great when restricted to portrait mode - for 99% of it that's exactly what I want. But, I have to play a video in one small portion of it which needs to allow the user to rotate to landscape. This is the only time I want the landscape to work though.

 

I have the app set to portrait mode with auto-orientation in my publishing settings - so it will allow you to view it in portrait normally and upside-down (but no landscape). I tried manually changing the screen using StageOrientation.ROTATED_RIGHT but it wouldn't work in my testing on iPad 3. 

 

I would be happy with rotating the entire video 90 degrees and the user would just have to turn the device - but I'm using stageVideo and I can't control the rotation (...or can i?). I would also be happy with setting some in-app variable that locks out landscape most of the time, is that possible?

 

Any suggestions/recommendations would be helpful. Thanks!


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>