简体   繁体   English

将Adobe AIR转换为Flex应用程序

[英]converting Adobe AIR to Flex application

We have a Adobe AIR desktop client which talks to a WAMP server. 我们有一个Adobe AIR桌面客户端,它与WAMP服务器通信。 How can i convert this AIR app to a Flex app to be used in the browser. 如何将此AIR应用程序转换为要在浏览器中使用的Flex应用程序。 Please let me know. 请告诉我。
Thanks 谢谢
vish. vish。

I would create a new empty Flex application and copy your files into that project. 我将创建一个新的空Flex应用程序并将您的文件复制到该项目中。 Then move any code in your main app component (which is derived from WindowedApplication) into the main app component in your new project (which is derived from Application). 然后将主应用程序组件(从WindowedApplication派生)中的任何代码移动到新项目(源自Application)的主应用程序组件中。 You'll also have to go through your app and determine which components are used that are specific to AIR and rework them to use other Flex components (the compiler will complain if you don't). 您还必须浏览您的应用程序并确定使用哪些特定于AIR的组件并将其重新编写以使用其他Flex组件(如果您不这样做,编译器会抱怨)。 This should give you a good start. 这应该会给你一个良好的开端。

I would move everything into a Flex library project. 我会将所有内容都移到Flex库项目中。 Then have an AIR project as well as a Flex app project which accesses the common code in the Flex Library project. 然后有一个AIR项目以及一个Flex应用程序项目,它可以访问Flex库项目中的公共代码。 This way you don't have to maintain two different codebases for common code and you can also have code which is specific to each version. 这样,您不必为公共代码维护两个不同的代码库,也可以使用特定于每个版本的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM