如何为Android制作Flex应用程序?
实际上我已经在 Flex 中创建了一个仪表板。但现在我想集成这个仪表板或为 Android 制作相同的仪表板。
我怎样才能做到这一点?我想为 Android 制作仪表板。
提前致谢。
Actually i have created one dashboard in flex. But now i want to integrate this dashboard or make same dashboard for Android.
How i can achieve this? I want to make dashboard for Android.
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,你需要从工具开始。 Flash Builder 4.5 是一个好的开始,因为它包含 Flex 4.5 SDK,您将需要它来构建移动应用程序。
使用 Flash Builder,创建新的移动应用程序非常容易:文件 -> 创建新的移动应用程序。新-> Flex 移动应用程序。
这是最简单的部分。如何将现有应用程序转换为在移动设备上运行?这就是事情变得有点棘手的地方,并且将依赖于你疯狂的开发技能。 :)
你看,浏览器或桌面 Flex 应用程序很少会直接转换到移动设备。导航范例不同(包括不使用鼠标的触摸),并且屏幕尺寸因设备而异。考虑手机和平板电脑。考虑横向和纵向模式。这些配置文件中的每一个都可能会让您思考您的用户界面。
希望您已经很好地区分了 UI 和行为。这将使开发移动应用程序变得更加容易。您可以通过新的 UI 重复使用绝大多数 Actionscript 代码(行为)。您甚至可以重复使用某些组件。但总而言之,您的用户界面可能是新的。另请注意,移动 SDK 几乎完全是 Spark,旧的 MX 组件无法在移动中使用。
我创建了一个构建快速移动应用的截屏视频,您可以使用它可能会觉得有用。
我还写了一篇关于 移动设备和其他屏幕。
祝你好运!
Well, you need to start with tools. Flash Builder 4.5 is a good start, as it includes the Flex 4.5 SDK, which you will need to build mobile apps.
With Flash Builder, it is very easy to create a new mobile application: File -> New -> Flex Mobile application.
That is the easy part. What about converting your existing app to work on mobile? This is where it gets a bit more tricky and will rely on your mad development skills. :)
You see, it is very rare that a browser or desktop Flex app will translate directly to a mobile device. The navigation paradigm is different, (including touches without the mouse) and the screen size varies from device to device. Consider phones and tablets. Consider landscape and portrait mode. Each of these profiles will likely make you think about your UI.
Hopefully, you already have good separation between your UI and your behavior. That will make it a lot easier to develop your mobile app. You can likely re-use the vast majority of your Actionscript code (behavior) with a new UI. You might even be able to re-use some of your components. In all, though, your UI will probably be new. Note also that the mobile SDK is almost completely Spark, and old MX components can't be used in mobile.
I created a screencast of building a quick mobile app that you might find useful.
I also wrote up a 2-part article about separation and sharing between mobile and other screens.
Good luck!
此处有一个精彩的“Flex for Android”教程,
您可能需要 AIR for Mobile 的详细介绍:
观看此处
There is a wonderful "Flex for Android " tutorial here
You may want a good Intro to AIR for Mobile :
Watch it here