I’m developing a mobile application in Flex 4.6, and I have the autoOrient property set to true so that Flex takes care of changing between portrait and landscape mode when the phone is rotated. This works, but…
The transition between portrait and landscape consists of the application rotating from one position to the other and it doesn’t look good at all. I would like to have Flex just cut or fade between the two screen orientations without rotating, but I can’t find where I could control this.
My application is based on a ViewNavigatorApplication if that helps with the answer.
I guess what I’m looking for is something like the sort of control you can have when changing between views with something like:
navigator.defaultPushTransition = new FlipViewTransition();
but to do with portrait/landscape transitions instead.
You can listen to the orientation change event (
StageOrientationEvent.ORIENTATION_CHANGE) and set a transition to your desired container.