Skip to main content
Inspiring
March 6, 2014
Question

stage orient

  • March 6, 2014
  • 1 reply
  • 843 views

My app is set to auto orient and auto aspect ratio in the app descriptor.  At a certain point, I want to disable it from orienting.  If I call:

stage.autoorients=false;

it works for portrait but if it is called when in landscape, it changes back to portrait instead of freezing it in landscape.  Is it actually loading the default instead of just disabling?

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
March 6, 2014

That’s interesting, and might make sense in some way I suppose.

You can easily work around the issue by setting the stage orientation to what it was before you turned of auto orients.

mola2alexAuthor
Inspiring
March 6, 2014

Guess I should state this is for Android, I don't believe it works the same for iOS.  I can set the orient manually to what it is, just wondering if this is expected behavior or a bug.