문제

I have an application that I've written in Adobe Flex.

I have my main information view with two pop ups: A login popup followed by an enter details pop up which returns the required information.

These pop ups work as desired in portrait orientation and not as desired in landscape orientation. I would like to have the orientation locked to portrait mode while these two pop up windows are up and then unlocked after.

Any help will be greatly appreciated.

Thank you, Eric

도움이 되었습니까?

해결책

Looks like you can add listeners for the change event and in certain cases (use a model to store if you're in those particular cases) use preventDefault to stop the event from doing it's normal thing. More on orientation and controlling it here: http://www.adobe.com/devnet/flash/articles/screen_orientation_apis.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top