Hello.
Is anybody know how to change screen orientation in mobile project (like in AS3 - stage.setAspectRatio( StageAspectRatio.LANDSCAPE ); )?
In mobile project i have to start app in portrait mode and after some steps switch to landscape.
Thank you for your help.
p.s. i use:
lime
openfl
msignal
robotlegs
monsterdebugger
actuate
It looks like the extension is older than when we updated to use Gradle (as Google recommends) rather than ANT, but otherwise, the code seems pretty straightforward – it is all Java, and basically amounts to this call
Extension.mainActivity is a static reference, and a function is being called on it to set the orientation.