我应该使用哪个版本的 AIR 将我的应用程序移植到 Android?
我们有一个 AIR 应用程序,它作为桌面应用程序在客户端-服务器模式下运行。
我们的应用程序在 AIR version-1.5;Flex version 3.5 上运行。我们希望将此应用程序移植到 Android 上。
AIR 1.5 可以与 Android 配合使用吗?如果不是,哪个版本的 AIR 应该与 Android 一起使用?
另外,我可以将 Flex Builder 配置为特定版本的 AIR SDK 吗?
我对 AIR 2.0、2.5 以及最近发布的适用于移动平台的 Flex Hero SDK 感到困惑。任何人都可以帮助我吗?我们将不胜感激。
we have an AIR application which is running in client-server mode as a desktop application.
Our application runs on AIR version-1.5;Flex version 3.5. We want this application to be ported to android.
Will AIR 1.5 work with Android? if not which version of AIR should be used with Android?
And also, Can i configure my Flex Builder to partucular version of AIR SDK?
I am getting confused with AIR 2.0, 2.5 and recently released flex Hero SDK for mobile platforms. Can any one please help me . It would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
否。Android 版 Air 的版本为 2.6。您需要使用 v4.5 的 Flex SDK 来进行移动。 Flash Builder 4.5 上周发布。
是的。至少在 v4.1 及更高版本中,可以。 (我之前从未使用过任何东西,但我猜你可以。)您可以根据需要下载任意数量的 SDK。您可以将 Flash Builder 设置为使用任何 SDK 作为默认值(Flash Builder -> 首选项 -> Flash Builder -> 安装的 Flex SDK),并且任何单个项目都可以覆盖它。 (文件 -> 属性 -> Flex 编译器 -> Flex SDK 版本)
我理解这种困惑。我认为最好的方法是下载最新版本的 Flash Builder 4.5,其中包括 Flex 4.5 SDK 和适用于移动设备的 Air 2.6。加载您的项目。你可能会发现从Flex 3.5开始,有很多东西需要改变。
其一,移动设备中没有很多 MX 组件。它们几乎都是 Spark 组件。但这并不像看起来那么糟糕。
尽管您可能可以将大量代码移植到您的移动项目中,但您将希望为您的移动项目创建一个新的 UI。除非您现有的 Air UI 是针对小屏幕和触摸而设计的,否则 UI 将无法很好地转换。从用户体验的角度来看,无论如何您都需要重写您的 UI。不过,好处是大多数非 UI 代码应该可以轻松移植,并且所有这些都是完全可重用的。
我希望,为了您的利益,您的 UI 和您的行为之间已经有了很好的分离......这将使整个过程变得更加容易。如果您的 AS3 紧密嵌入到您的 MXML 中,您将需要做更多的工作。
祝你好运 :)
No. Air for Android is at version 2.6. You need to use the v4.5 of the Flex SDK to do mobile. Flash Builder 4.5 was released last week.
Yes. At least in v4.1 and above, you can. (I've never used anything before that, but I'd guess you can.) You can download as many SDKs as you want. You can set Flash Builder to use any SDK as a default (Flash Builder -> Preferences -> Flash Builder -> Installed Flex SDKs) and any individual project can override it. (File -> Properties -> Flex Compiler -> Flex SDK version)
I understand the confusion. I think the best way to go is download the latest version of Flash Builder 4.5, which includes the Flex 4.5 SDK and Air 2.6 for mobile. Load up your project. You will probably find that from Flex 3.5, there are many things that need to be changed.
For one, there aren't a lot of MX components in mobile. The are pretty much all Spark components. But that is not as bad as it seems.
Although you can probably port a lot of code over to your mobile project, you will want to create a new UI for your mobile project. Unless your existing Air UI was designed for small screens and touch, the UI won't translate well. From a User Experience perspective, you will want to re-write your UI anyways. The bonus, though, is that most your non-UI code should port easily, and all of that is completely re-usable.
I hope, for your sake, that you have a good separation already between your UI and your behavior... it will make this whole process a TON easier. If your AS3 is tightly embedded within your MXML, you will have a bit more work to do.
Good luck :)