如何在flex项目中运行.swc文件?

发布于 2024-08-25 19:11:21 字数 91 浏览 8 评论 0原文

我有一个 .swc 文件,并且我学会了如何将该 swc 文件添加到库中。如果有人解释如何在我的 Flex 项目中使用此 .swc 文件并通过示例运行该文件,我将很高兴。

I have a .swc file and I learned how to add that swc file into the library. I will be happy if any one explain how to use this .swc file into my flex project and run that with an example .

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

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

发布评论

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

评论(1

萝莉病 2024-09-01 19:11:21

您需要创建一个命名空间来访问swc 的成员。例如,在您的 mxml 应用程序标记中,您将拥有

... xmlns:mySwc="com.project.foo.*" ...

这为位于 com/project/foo 中的 swc 提供了别名 mySwc。然后你可以像这样访问它的类

<mySwc:swcClass ... />

You need to create a namespace to access members of the swc. For example, in your mxml application tag you would have

... xmlns:mySwc="com.project.foo.*" ...

This gives the alias mySwc to the swc located in com/project/foo. You would then access its class like

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