[as3] air for android - stage.setOrientation deprecated in AIR 2.5 so how do I do it now?
- by jason
as3 air for android using flash CS5
my problem: testing an AIR app on my droid 2 global (with slide out keyboard)
using stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, handleOrientationChange);
this is only fired when the i slide the keyboard out and not when I rotate the phone.
I have tried this with the auto orientation on and off and with the aspect to portrait and landscape.
actually the auto orientation option does not seem to make a difference on or off.
I need the orientation to change when i rotate the phone. I know i can use the accelerometer to do this but the problem with that is when I click on a textField with the keyboard closed only the vertical keyboard pops up and i need the other one to pop up when holding the phone sideways.