由于某种原因,这些组件没有编译到 .swc 文件!
大家好,我正在尝试编译一个 SWC 文件,一切正常,直到需要添加组件的部分,它们根本没有添加到 .swc 文件中。
原始文件应该约为 211 KB,当我编译它时,它只有 1.64 KB,在解压 .swc 和其中的 .swf 后,我可以看到根本没有添加任何组件。
顺便说一句,一些组件显示一些错误,但我不认为这是不包含所有组件的原因,因为错误如下:
Description Resource Path Location Type
1084: Syntax error: expecting rightparen before leftbrace. XXX.as /XXX/[source path] src/com/XXX line 1469 Flex Problem
问题可能是什么?问我是否需要一些未来的信息,因为我真的不知道这里要包含什么,因为没有代码,它只是一个带有库的项目。
此致, 里科·S。
Hey folks I'm trying to compile an SWC file and everything works great until the part where it needs to add components, none of them added added to the .swc file at all.
The original file should be somewhere around 211 KB and when i compile it its only 1.64 KB, after unpacking the .swc and then the .swf inside it i can see that there is no components added at all.
BTW some components showing some errors but i dont think its a reason to not include ALL the components because the errors are like:
Description Resource Path Location Type
1084: Syntax error: expecting rightparen before leftbrace. XXX.as /XXX/[source path] src/com/XXX line 1469 Flex Problem
What could the problem be? ask me if you need some future info cause i don't really know what to include in here cause there is no code it's only a project with a library.
Best Regards,
Rico S.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这个问题中你会跳到很多问题。
如果您收到编译器错误;那么SWC根本不会生成。因此,首先修复这些编译器错误。
您提到的错误听起来像是语法错误,因为您没有正确关闭括号。
在 Flash Builder 中,您可以打开项目属性,选择 Flex Library Build Path,选择 Classes,然后您可以单独选择应添加到 SWC 中的类。
您的问题涉及原始文件大小和编译文件大小。我不确定“原始文件大小”来自哪里。
You jump around to a lot of issues in this question.
If you're receiving compiler errrors; then the SWC will not be generated at all. So, first fix those compiler errors.
The error you mention sounds like a syntax error, with you did not properly close parenthesis.
In Flash Builder, you can open up the project properties, select Flex Library Build Path, select Classes, and then you can individually select the classes that should be added to your SWC.
Your question talks about original file size and compiled file size. I'm not sure where "original file size" comes from.