Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 .swc 文件,我学会了如何将该 swc 文件添加到库中。如果有人解释如何在我的 flex 项目中使用这个 .swc 文件并通过示例运行它,我会很高兴。
您需要创建一个命名空间来访问 swc 的成员。例如,在您的 mxml 应用程序标签中,您将拥有
... xmlns:mySwc="com.project.foo.*" ...
这为位于 com/project/foo 中的 swc 提供了别名 mySwc。然后你会像访问它的类
<mySwc:swcClass ... />