actionscript 3 - Air mobile device orientation on initialize of the app -


i develop app phone , tablet devices. when device phone app displayed in portrait. when device tablet app displayed in landscape.

this no problem , works fine. in app xml default aspectration portrait. check in runtime if device tablet , change aspectration landscape. _nativestage.autoorients = true; _nativestage.setaspectratio(stageaspectratio.landscape); working.

there 1 problem: when rotate ipad example upside down(hardware menu button on left side of device ;) ) , start app, device rotates default rotatedright. application stands on head. ios action bar on bottom.

i didnt find out current orientation on startup. when check stage.deviceorientation or stage.orientaion "default"or "undefined" in both orientations. (normal or upside down)

maby knows solution correct rotation device on startup. can check , can make stage.setorientation(stageorientation.rotated_right); or stage.setorientation(stageorientation.rotated_left);

please me :(

i found solution ... :d set aspectratio tag in app.xml file "any" , works ... maby helps


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -