• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Device Orientation

New Here ,
Dec 21, 2010 Dec 21, 2010

Copy link to clipboard

Copied

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));


        }

Views

331

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 21, 2010 Dec 21, 2010

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines