Flex/Actionscript:无法添加存档文件

发布于 2024-09-02 03:17:23 字数 431 浏览 9 评论 0原文

我正在 Flash Builder 4 中开发一个 Flex 4 应用程序。我正在尝试使用由同事开发的库,该库作为 SWC 提供。

我将库添加到项目属性中的库路径中。组件集:MX + Spark,框架联动:合并到代码中。

当我尝试从此库实例化组件时,出现以下错误:

unable to add archive file: [library].swc$locale\en_US\..\..\resources\images\AcceptButton.png (The system cannot find the path specified)

当我解压 [library].swc 时,图像确实存在于 .\resources\images\AcceptButton.png 中,正如我所期望的那样。

任何解决此问题的建议将不胜感激。

I have an Flex 4 application that I am developing in Flash Builder 4. I'm trying to use a library developed by a coworker, which was delivered as an SWC.

I added the library to the Library Path in the project properties. Component set: MX + Spark, Framework linkage: Merged into code.

When I attempt to instantiate a component from this library, I get the following error:

unable to add archive file: [library].swc$locale\en_US\..\..\resources\images\AcceptButton.png (The system cannot find the path specified)

When I unzip [library].swc, the image does exist in .\resources\images\AcceptButton.png as I would expect.

Any suggestions to go about resolving this would be much appreciated.

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

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

发布评论

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

评论(1

凯凯我们等你回来 2024-09-09 03:17:23

您最好的选择可能是获取未压缩的源代码,看看您是否遇到同样的问题。很难猜测 SWC 文件中出了什么问题。它的功能应该与 SWC 相同。

Your best bet is probably to get the uncompressed source code and see if you're having the same problem. It's difficult to guess at what's going wrong inside a swc file. It should function the same way as the SWC.

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