Skip to main content
Inspiring
September 19, 2012
Question

Desperately need a way to identify iPad2 or iPad3

  • September 19, 2012
  • 8 replies
  • 1193 views

Has anyone come up with a method to determine between the 2 ?

Can I get the resolution ?  When I trace the stage size both return 1024 x 768 ?

This topic has been closed for replies.

8 replies

Colin Holgate
Inspiring
September 19, 2012

The stage size will remain the same as you have it, but these will tell you the width and height of Portrait mode:

Capabilities.screenResolutionX

Capabilities.screenResolutionY

If you are set to a quality of Standard, I think those would still report 768 and 1024 on iPad 2 and 3, but if you're set to High the 3 will give 1536 and 2048.

You will also need to have used iOS SDK 5.1 or later for that to work.

Pahup
Adobe Employee
Adobe Employee
September 19, 2012

No, iOS SDK 5.1 is not required for retina on iPad3, it was the case earlier, but not AIR 3.3 onwards.

-Pahup

Colin Holgate
Inspiring
September 19, 2012

Well, AIR 3.3 uses iOS SDK 5.1, or at least achieves the same goal.

Sometimes you need to have the app be non-Retina on iPad 3, say for performance reasons. In those cases you can add an ANE into the FLA and then point Flash to the iOS SDK 5.0 folder. Then the app will publish as Retina for iPhone but non-Retina for iPad.

Participating Frequently
September 19, 2012

look up for Capabilities.os

you can get iphone1, iphone4, ipad, ipad2, ipad3, and on...