Flex/Actionscript:无法添加存档文件
我正在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您最好的选择可能是获取未压缩的源代码,看看您是否遇到同样的问题。很难猜测 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.