Hi-DPI Macbook Pro support in Flash/AIR

A very cool toy Apple gave us a few days before is the new Macbook Pro with Retina screen. The super high resolution of that MAC provides a significant improvement of display effect. But it also gives a new problem to all Flash/AIR developer and their applications.

When you try to call Capabilities.screenResolutionX and Capabilities.screenResolutionY, it will always tell you 1440 * 900 (the resolution of the old Macbook Pro 15). If you try Capabilities.screenDPI, 72 will be returned.

It’s not good, is it? Then how can we know if we are running on a Retina screen or a regular screen? The answer currently is NO. The current Flash SDK doesn’t support geting the “real” resolution of the Retina screen. It cannot provide the scale factor either. One article mentioned Adobe is working on it in the new FlashPlayer.

Ok, so what we can do now? Not much actually🙂. But if your application is the one runs in the web browser, you will have a little luck than others. The new Safari in Mountain Lion supports rendering high quality text and high res assets in FlashPlayer. But it’s only happen in Safari. Even the latest Google Chrome doesn’t get it right. But you might also want to replace your asset from JPG or PNG to SWF (or any other vector graphic).

Check the screen shot in Safari

And in Chrome

As you can see, Safari renders text and high-res PNG files much better than Chrome. If you are an AIR application developer, I’m sorry but you are so un-lucky. AIR in Mountain Lion supports Retina screen not well as expected. We have to wait for another update from Adobe to make AIR works better on MAC.

 

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s