使用 mx 库升级现有的 Flex 应用程序以在 Android 上运行

发布于 2024-11-29 08:10:31 字数 669 浏览 3 评论 0原文

我正在尝试让我的 Flex 应用程序在 Android 上运行,这涉及到制作一个在 Android 上运行的 AIR 应用程序。由于 Flex 应用程序需要麦克风,因此需要 AIR 应用程序。我在win7上使用flash builder 4.5和air 2.6。问题似乎是现在大部分都无法使用。例如 mx.containers 存在,但 mx.containers.viewStack 不存在。我注意到 Spark 中的某些组件有明显的等效项,但其他组件则不然。 VBox、HBox、Canvas VDividedBox、AdvancedDataGrid 和关联的自定义渲染器是我的应用程序使用最多的组件。 在 Android 上实现此功能的最快方法是什么,我面临着时间压力。是否有某个网站推荐执行此操作的最佳方法,以及可以用哪些组件替换哪些组件?

(这是我第一次在这里发帖,但我在 vworker 上有很好的声誉: http://www.vworker.com/RentACoder/DotNet/SoftwareBuyers /ShowBuyerInfo.aspx?lngAuthorId=6446927

谢谢

雷神

I am trying to make my flex app work on Android, and that involves making an AIR app to run on Android. Seeing as the flex app needs the mic, an AIR app is required. I am using flash builder 4.5 on win7 with air 2.6. The trouble seems to be that most of it is now not available. For example mx.containers is there, but not mx.containers.viewStack. I notice that there are obvious equivalents in spark for some components but not others.
VBox, HBox, Canvas VDividedBox, AdvancedDataGrid and associated custom renderers are the components my application uses the most.
What is the fastest way to make this work on Android, I am under time pressure. Is there a site somewhere that recommends the best way to do this, and what components can be replaced with which?

(This is my first time posting here, but I have a good reputation on vworker:
http://www.vworker.com/RentACoder/DotNet/SoftwareBuyers/ShowBuyerInfo.aspx?lngAuthorId=6446927)

Thanks

Thor

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

番薯 2024-12-06 08:10:31

听起来您需要阅读 Flex 4.5 的 完整 Adob​​e 手册。其中大部分内容将进行回顾,您可以轻松浏览,但您需要了解 Spark 组件和 Spark 架构。

要直接绘制与您需要的特定组件的相似之处:

画布通常被组替换。

VBox 替换为 VGroup。或者您可以使用带有 VerticalLayout 的 Group。

HBox 被替换为 HGroup。或者您可以使用具有 Horizo​​ntalLayout 的 Group。

ViewStack 没有 Spark 版本。在移动应用程序中,您可能会使用视图类和 ViewNavigator 来完成类似的事情,

我不确定 VDividedBox;也不是 AdvancedDataGrid 的替代品。

由于您想要构建 Android 应用程序,接下来您需要阅读此内容Adobe 手册。为了让 AIR for Android 获得可接受的性能,您可能必须从头开始重写 MX 密集型项目。

这不是一个我想在时间紧迫的情况下参与的项目;所以我祝你好运。

It sounds like you need to read the Full Adobe Manual for Flex 4.5. Much of it will be review and you can breeze through that, but you'll want to learn about the Spark components and the spark architecture.

To draw a direct parallel to your specific components you need:

A Canvas is, generally, replaced by a Group.

a VBox is replaced with a VGroup. Or you can use a Group with a VerticalLayout.

An HBox is replaced with an HGroup. Or you can use a Group with a HorizontalLayout.

There is no Spark version of a ViewStack. In Mobile Applications you'd probably use the view class and ViewNavigator to accomplish something similar

I'm not sure of a VDividedBox; nor AdvancedDataGrid replacement.

Since you wan to build an Android app, next you're going to want to read this Adobe manual. To get acceptable performance out of AIR for Android, you are probably going to have to rewrite an MX heavy project from scratch.

This is not a project I'd want to partake with tight time constraints; so I wish you best of luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文