From SWF to AIR to iOS application

后端 未结 3 1754
南笙
南笙 2021-02-06 07:55

I have existing Flash application, which compiles to SWF and runs on web. I\'m looking at converting that application to work on mobile devices such as iPhone/iPad.

I

3条回答
  •  再見小時候
    2021-02-06 07:56

    This question was just answered here, but to recap any Flash content can be packaged to iOS or other mobile device with AIR.

    AIR can be overlaid to Flash Professional or Flash Builder, or your SWF can be packaged using the ADT command line packager:

    • Download AIR 3.0 SDK.
    • Assure JRE, or use the one from Flash Builder.
    • Execute adt to package your SWF to an IPA:

      adt -package -target [ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc]
          -keystore iosPrivateKey.p12 -storetype pkcs12 -storepass qwerty12
          -provisioning-profile ios.mobileprovision
          HelloWorld.ipa
          HelloWorld-app.xml
          HelloWorld.swf icons Default.png
      

    It's important to note that all executable code must reside in a single SWF to run on the iOS platform. SWFLoading or any dynamically loaded SWF that executes code is not supported. So, link all your Flash to a single SWF.

    There are other considerations, such as optimizing performance and handling multiple screen resolutions and aspect ratios.

    References:

    • http://www.adobe.com/devnet/air/articles/packaging-air-apps-ios.html
    • http://www.adobe.com/devnet/air/articles/packaging-air-apps-android.html
    • http://www.adobe.com/devnet/air/articles/packaging-air-apps-blackberry.html

提交回复
热议问题