determine system icon size with Flex, AIR or ActionScript3?
Each system - whether it is win, mac, or linux - displays (desktop) icons at a user selected size (e.g., 16x16, 32x32, 48x48, etc.)
How can I find which size is being used by the local syst开发者_如何学Goem from within Flex or ActionScript3?
thanks,
Mark
system icon sizes can be set at many different sizes. for example, on my mac i have my desktop icons set to display at 70x70. also, windows vista/7 supports icon sizes up to 256x256 while Mac OS X supports icon sizes up to 512x512.
if you need to find the users settings, you'll have to call a native process from an AIR native installed application to read the users system preferences.
EDIT------
here's an example of my com.apple.finder.plist, which holds the value of my desktop icon size (it's 68x68).
精彩评论