In AS3 code for Air, how can I get the screen width and height of the mobile device its running on?
If you use emulators on the desktop, Capabilities will return the resolution of you computer but not of emulated device.
Just simply use stage for this:
trace(stage.fullScreenWidth, stage.fullScreenHeight);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With