“外部”的含义是: Flex Builder 中的链接模式
可通过三种模式将 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将类定义为外部类允许 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