here I want to do some resolution specific things for an iOS application. expect getting 768x1024 for ipad and 640x960 for iphone4
when playing with stage.stageWidth, thing goes fine.
somehow I heard that I should use Capabilities.screenResolutionX
so I change the code
now the problem is when I run the app by Flash builder's built in simulator, Capabilities.screenResolutionX and Capabilities.screenResolutionY return the dimension of my DESKTOP! not the size of iOS device. (stage.stageWidth returns the correct result though)
what do you guys think?? is it the bug of flash builder (4.5.1) (or the simulator) or am I doing something stupid??
please help, thanks
Same issue here, although stage.stageWidth/Height are not returning the correct values either. Capabilities.screenDPI returns the correct values for the devices being emulated which makes it seem that Capabilities.screenResolutionX/Y returning the desktop values is incorrect. I'm needing to comment out the Capabilites lines and manually type the dimensions of the screen size I want to test using device emulation in FlashBuilder 4.6.
Does stage.width/stage.height work better than stage.stageWidth/stage.stageHeight?