简体   繁体   English

将Flex AIR应用程序与Flash浏览器插件一起使用

[英]Using a Flex AIR application with the Flash browser plugin

I have a Flex AIR application. 我有一个Flex AIR应用程序。 During the compilation process, a .swf file is generated. 在编译过程中,将生成一个.swf文件。 Is this SWF usable with the Flash browser plugin? 该SWF是否可以与Flash浏览器插件一起使用? If not, how would one go about porting the application to the browser? 如果没有,如何将应用程序移植到浏览器? Are there pitfalls to be aware of? 有陷阱要注意吗?

The common/standard approach is to create multiple projects in your IDE. 通用/标准方法是在IDE中创建多个项目。 Note that some AIR classes cannot be used in web applications. 请注意,某些AIR类不能在Web应用程序中使用。 So you'll likely need to segregate the AIR specific code anyway. 因此,您可能仍然需要隔离AIR特定的代码。

You'll put the majority of your common code into shared libraries (SWC's). 您将把大多数通用代码放入共享库(SWC)中。 You might have several library SWC's (some might contain AIR only code, and vice versa). 您可能有几个库SWC(某些库可能包含AIR only代码,反之亦然)。 You also create two application projects: an AIR application and a web application. 您还将创建两个应用程序项目:AIR应用程序和Web应用程序。

The two application projects use the shared library SWC's and generally do not have much code in them. 这两个应用程序项目使用共享库SWC,并且其中通常没有太多代码。 These are just "application shells" that utilize the common code from the SWC. 这些只是利用SWC中通用代码的“应用程序外壳”。

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

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