如何在flash builder项目中使用swc文件

发布于 2024-10-16 07:56:04 字数 282 浏览 9 评论 0原文

你好.. 我有一个 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 技术交流群。

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

发布评论

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

评论(2

猫七 2024-10-23 07:56:04

将 swc 添加到项目后(如屏幕截图所示),您可以像使用项目中的任何其他类一样使用 swc 中的任何类:

AS:

import some.package.in.my.swc.SomeClass;

private var someClass:SomeClass;

MXML:

将命名空间添加到指向swc 中的包,例如 xmlns:library="some.package.in.my.swc.*",然后添加如下标签:

<library:SomeComponent/>

希望有所帮助。

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:

import some.package.in.my.swc.SomeClass;

private var someClass:SomeClass;

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:

<library:SomeComponent/>

Hope that helps.

别闹i 2024-10-23 07:56:04

项目属性 | Flex 构建路径 |添加 SWC

,然后使用组件将其导入到您的 ActionScript 类中

Project Properties | Flex Build Path | Add SWC

and then to use a component import it in your ActionScript class

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