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));
}
Copy link to clipboard
Copied
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.