如何在flash builder项目中使用swc文件
你好.. 我有一个 swc 文件,我已使用以下命令将文件添加到我的项目中 http://interactivesection.files.wordpress.com/2008/11/use_flash_code_library_in_flex.jpg 我如何在我的 Flash 构建器项目中使用这个组件。 谢谢
HI..
i have a swc file i have added file to my project using
http://interactivesection.files.wordpress.com/2008/11/use_flash_code_library_in_flex.jpg
how can i use this component in my flash builder project.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 swc 添加到项目后(如屏幕截图所示),您可以像使用项目中的任何其他类一样使用 swc 中的任何类:
AS:
MXML:
将命名空间添加到指向swc 中的包,例如 xmlns:library="some.package.in.my.swc.*",然后添加如下标签:
希望有所帮助。
After adding the swc to the project as shown in your screengrab, you can just use any of the classes in the swc as you would any other class in your project:
AS:
MXML:
Add a namespace to the top level tag that points to a package in the swc, such as xmlns:library="some.package.in.my.swc.*", then add tags like so:
Hope that helps.
项目属性 | Flex 构建路径 |添加 SWC
,然后使用组件将其导入到您的 ActionScript 类中
Project Properties | Flex Build Path | Add SWC
and then to use a component import it in your ActionScript class