I’m experiencing this weird issue with my app using AIR 3.9, when I use a preloader or set the main size to stage.fullScreenWidth and fullScreenHeight, the game becomes slightly over sized (it seems in just height) and won’t fit on the screen.
my stage default size in the project is 320,480 so I have no clue what could be the cause of this and wonder if anyone else can provide some insight.
Here’s my main function:
public function Main():void {
super(320,480, 30, true);
FP.world = new GameMenu;
}
Here’s my preloader call to the main function:
private function run():void {
nextFrame();
var MainClass:Class=getDefinitionByName(mainClassName) as Class;
if (MainClass == null) {
throw new Error("AbstractPreloader:initialize. There was no class matching that name. Did you remember to override mainClassName?");
}
var main:DisplayObject=new MainClass() as DisplayObject;
//trace(stage.stageWidth);
if (main == null) {
throw new Error("AbstractPreloader:initialize. Main class needs to inherit from Sprite or MovieClip.");
}
addChildAt(main, 0);
//main.width = stage.fullScreenWidth;
//main.height = stage.fullScreenHeight;
}
To top it all off, using fullscreen on my iphone causes the same issue, the game is slightly oversized, and it gets moved down for the iOS status bar. (I have systemChrome set to none)
Thanks in advance for any help.