“外部”的含义是: Flex Builder 中的链接模式

发布于 2024-09-24 10:01:04 字数 212 浏览 2 评论 0原文

可通过三种模式将 SWC 库链接到 Flex 应用程序:“合并到代码中”、“外部”和“RSL”。我明白什么是“RSL”,但我不明白什么是“外部”。

“RSL”对我来说工作得很好,无需更改任何代码。但是,外部对我不起作用。尽管我的应用程序启动,但从未找到 SWC 中设置为“外部”的类。

如果不是“RSL”,“外部”是什么意思?我该如何利用它?

谢谢你, 鲍里斯

There are three modes to link an SWC library to a flex application: "Merged into code", "External" and "RSL". I understand what is "RSL", but I don't understand what is "External".

"RSL" works just fine for me, without any code changes. However, External doesn't work for me. Although my application starts, the classes in the SWC set to External are never found.

What is the meaning of "External" if it is not "RSL" ? How do I make use of that ?

Thank you,
Boris

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

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

发布评论

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

评论(1

烟柳画桥 2024-10-01 10:01:04

将类定义为外部类允许 Flex 编译器在编译时链接到特定类,但不会使其包含在生成的 SWF 中。

外部类的一般用途是有多个使用共享库的模块。在每个模块中包含共享类定义是多余的,External 关键字允许您控制如何将这些类编译到库中。

更多信息可从以下位置获取:

http://web.archive.org/web/20101007120528/http://www.wannaknowflex.com/2010/05/flex-linkage-difference- Between- rsl-and-external/

http://www.flexafterdark.com/docs/ Flex-Libraries

(外部库路径和加载外部编译器信息):
http://www.newtriks.com/?p=802

Defining a class as External allows the Flex compiler to link to a particular class at compile time but does not cause it to be included in the generated SWF.

The general use for External classes is where you have multiple modules that use a shared library. It would be redundant to include the shared class definitions in every single module and the External keyword allows you to control how these classes are compiled into your libraries.

More information is available at the following locations:

http://web.archive.org/web/20101007120528/http://www.wannaknowflex.com/2010/05/flex-linkage-difference-between-rsl-and-external/

http://www.flexafterdark.com/docs/Flex-Libraries

(external-library-path and load-externs compiler information):
http://www.newtriks.com/?p=802

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