Skip to main content
Inspiring
Mar 6, 2014 6:47 PM UTC
Question

stage orient

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

6 replies

Colin Holgate
Inspiring
Mar 6, 2014 7:05 PM UTC

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.

Translate
mola2alexAuthor
Inspiring
Mar 6, 2014 8:29 PM UTC

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.

Translate