Posted By

chrisaiv on 06/23/11


Tagged

flash xml AIR ios


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

shoffa
sidneydekoning


XML: AIR Application Descriptor for High-Res iPhone


 / Published in: XML
 

URL: http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html

Compiling an iOS app using Flash requires an application descriptor file. Within this XML file, you can tell the app to compile for High-Res iPhones, iPad 2 as well as remove the default gloss on an icon and even change the look-and-feel of a status bar. Enjoy!

This is helpful when trying to figure out application icons (http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d129907d2886-8000.html)

  1. <?xml version="1.0" encoding="utf-8" standalone="yes"?>
  2. <application xmlns="http://ns.adobe.com/air/application/2.7">
  3. <id>com.chrisaiv.applicationname</id>
  4. <versionNumber>1.0.0</versionNumber>
  5. <filename>ApplicationName</filename>
  6. <description>Descritpion</description>
  7. <name>Application Name</name>
  8. <copyright>2011</copyright>
  9. <initialWindow>
  10. <content>Content.swf</content>
  11. <systemChrome>standard</systemChrome>
  12. <transparent>false</transparent>
  13. <visible>true</visible>
  14. <!-- Not necessary but helpful -->
  15. <width>960</width>
  16. <height>640</height>
  17. <!-- No Keyboard needed-->
  18. <softKeyboardBehavior>none</softKeyboardBehavior>
  19. <fullScreen>true</fullScreen>
  20. <autoOrients>false</autoOrients>
  21. <aspectRatio>portrait</aspectRatio>
  22. <renderMode>gpu</renderMode>
  23. </initialWindow>
  24. <customUpdateUI>false</customUpdateUI>
  25. <allowBrowserInvocation>false</allowBrowserInvocation>
  26. <icon>
  27. <image29x29>icons/29x29.png</image29x29>
  28. <image57x57>icons/57x57.png</image57x57>
  29. <image114x114>icons/114x114.png</image114x114>
  30. <image512x512>icons/512x512.png</image512x512>
  31. <image48x48>icons/48x48.png</image48x48>
  32. <image72x72>icons/72x72.png</image72x72>
  33. </icon>
  34. <iPhone>
  35. <InfoAdditions>
  36. <![CDATA[
  37. <key>UIDeviceFamily</key>
  38. <array>
  39. <!-- iPhone -->
  40. <string>1</string>
  41. <!-- iPad -->
  42. <string>2</string>
  43. </array>
  44. <!-- Remove Gloss on Icon -->
  45. <key>UIPrerenderedIcon</key>
  46. <string>YES</string>
  47. <!-- Make Bar on Iphone Black but remember, we've made the app full screen -->
  48. <key>UIStatusBarStyle</key>
  49. <string>UIStatusBarStyleBlackOpaque</string>
  50. <!-- Persistent Wifi for iPad Apps -->
  51. <key>UIRequiresPersistentWiFi</key>
  52. <string>NO</string>
  53. <!-- Exit the App Completely, not just suspend -->
  54. <key>UIApplicationExitsOnSuspend</key><true />
  55. ]]>
  56. </InfoAdditions>
  57. <!-- Make this available for Retina Display-->
  58. <requestedDisplayResolution>high</requestedDisplayResolution>
  59. </iPhone>
  60. </application>

Report this snippet  

You need to login to post a comment.