如何在flex项目中运行.swc文件?
我有一个 .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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要创建一个命名空间来访问swc 的成员。例如,在您的 mxml 应用程序标记中,您将拥有
这为位于 com/project/foo 中的 swc 提供了别名 mySwc。然后你可以像这样访问它的类
You need to create a namespace to access members of the swc. For example, in your mxml application tag you would have
This gives the alias mySwc to the swc located in com/project/foo. You would then access its class like