从SWF到空气中的iOS应用程序 [英] From SWF to AIR to iOS application

查看:193
本文介绍了从SWF到空气中的iOS应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经现有的Flash应用程序,它编译成SWF和运行网络。我期待在转换的应用程序工作在移动设备上,如iPhone / iPad的。

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.

我看到,现在有一种方法来发布Adobe AIR应用程序在移动设备。我的想法是,为什么不转换SWF到AIR应用程序并然后使用AIR应用程序发布在移动设备上。是否有意义?这甚至可能还是可行?

I see that there is now a way to publish Adobe Air applications on mobile devices. My thought is why not convert SWF to AIR application and then use that AIR application to publish on mobile devices. Does it make sense? Is this even possible or doable?

人们在做什么转换现有的Flash的SWF应用程序在移动设备上工作?

What are people doing to convert their existing Flash SWF applications to work on mobile devices?

推荐答案

这个问题只是<一href="http://stackoverflow.com/questions/11481099/can-all-flash-games-be-readily-ported-to-adobe-air-for-deployment-on-ios/11481333#11481333">answered这里,但回顾一下所有的Flash内容可以被打包到iOS或AIR其他移动设备上。

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

AIR可以覆盖到Flash Professional或Flash Builder中,或者您的SWF可以使用ADT命令行打包打包:

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

  • 在下载AIR 3.0 SDK。
  • 在保证不对JRE,或者使用从Flash Builder之一。
  • 执行ADT为您的SWF打包到一个IPA:

  • 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

重要的是要注意,所有的可执行文件code必须驻留在一个单一的SWF到iOS平台上运行。不支持SWFLoading或任何执行code动态加载的SWF。因此,链接所有Flash在一个SWF。

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.

有其他考虑,如<一个href="http://stackoverflow.com/questions/8380789/what-are-the-major-performance-hitters-in-as3-aside-from-rendering-vectors/8380883#8380883">optimizing性能并处理多种屏幕分辨率和宽高比。

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

参考文献:

  • 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

这篇关于从SWF到空气中的iOS应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆