Hello !
I just test my game on ipad3 and I can't fix the problem of resolution.
More precisely I want test my game directly in air on windows wihout upload to ipad..
My actual code is :
[SWF(width='1024', height='768', backgroundColor='#FFFFFF', frameRate='60')] public function Main():void { stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; //... var screenWidth:int = stage.stageWidth; var screenHeight:int = stage.stageHeight; var viewPort:Rectangle = new Rectangle(0, 0, screenWidth, screenHeight); starling = new Starling(MainView, stage, viewPort); trace(screenWidth, screenHeight); // 1024, 768 var isPad:Boolean = (screenWidth == 768 || screenWidth == 1536); starling.stage.stageWidth = isPad ? 384 : 320; starling.stage.stageHeight = isPad ? 512 : 480; trace(Starling.contentScaleFactor); //3.2//...
So the contentScaleFactor on my pc should be 2 or 1 but 3.2 ?? How do you manage it ?
Thanks by advance,
Makio