1 Reply Latest reply on Dec 21, 2010 3:58 PM by RobFacks

    Device Orientation

    RobFacks Level 1

      I want to disable the Device Orientation to my application. However when I take off

       

          // support autoOrients
                   stage.align = StageAlign.TOP_LEFT;
                   stage.scaleMode = StageScaleMode.NO_SCALE;

       

      It stops the orientation but it doesnt adjust my swf to the correct size of the device.

       

          public function KD()
              {
                  var factory:IGraphicsInterface;
                  // support autoOrients
                  stage.align = StageAlign.TOP_LEFT;
                  stage.scaleMode = StageScaleMode.NO_SCALE;
                     
                  stage.addEventListener(Event.RESIZE, resizeHandler);
                  stage.dispatchEvent(new Event(Event.RESIZE));

       


              }

        • 1. Re: Device Orientation
          RobFacks Level 1

          Found what I was looking for. I open the xml file that the flahs builder AS mobile project creates and add

           

          <aspectRatio>landscape</aspectRatio>

          and changed  from true to false <autoOrients>false</autoOrients>

           

          Now I got my landscape view for my application.