I am currently developing a video conferencing system for Android android using Flex 4 and action script 3. for video chat I have 2 views, 1. Full screen mode and 2. Normal screen. Now the question is how can I set the default display orientation for the view. when I click full-screen mode, the view should load in the "Landscape" orientation, and when I click "Normal screen", the view should load the "Portrait" view. I tried Stage.orients. but using this, I can only set one orientation for the application.
<aspectRatio>portrait</aspectRatio> <autoOrients>false</autoOrients> stage.autoOrients = true/false; stage.setOrientation( StageOrientation.DEFAULT );
Please help me solve this problem. In fact, I can set the default orientation for one view. but I need to set a different orientation for different views. for FullScreen I need to set Landscape as the default orientation, and for a regular screen I need to set Portrait as the default orientation. any idea?
source share