Ant 任务 compc 处理空中错误
我正在尝试从我编写的源代码编译 SWC,但由于某种原因我收到此错误:
[compc] Error: 'flash.events:StageOrientationEvent' is undefined.
[compc]
[compc] Error: 'flash.data:EncryptedLocalStore' is undefined.
[compc]
[compc] Error: 'flash.desktop:NativeDragActions' is undefined.
[compc]
[compc] Error: 'flash.desktop:NativeDragOptions' is undefined.
[compc]
[compc] Error: 'flash.events:NativeDragEvent' is undefined.
并且无法弄清楚如何修复它。
有什么想法吗?
更新
tcompc代码:
<compc debug="true" target-player="10.2" optimize="true" strict="true" as3="true" compute-digest="false" output="${outputFull}">
<include-sources dir="./" includes="**/*.as" />
<compiler.library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*"/>
</compiler.library-path>
</compc>
I'm trying to compile the SWC from the source I have writen, but for some reason I'm getting this error:
[compc] Error: 'flash.events:StageOrientationEvent' is undefined.
[compc]
[compc] Error: 'flash.data:EncryptedLocalStore' is undefined.
[compc]
[compc] Error: 'flash.desktop:NativeDragActions' is undefined.
[compc]
[compc] Error: 'flash.desktop:NativeDragOptions' is undefined.
[compc]
[compc] Error: 'flash.events:NativeDragEvent' is undefined.
and can not figure out how to fix it.
Any ideas?
UPDATE
tThe compc code:
<compc debug="true" target-player="10.2" optimize="true" strict="true" as3="true" compute-digest="false" output="${outputFull}">
<include-sources dir="./" includes="**/*.as" />
<compiler.library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*"/>
</compiler.library-path>
</compc>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,经过一番谷歌搜索后,我发现 compc 不适用于空气组件库!。
得到这个,你需要使用acompc!是的!看看这个:http://livedocs.adobe.com /flex/3/html/help.html?content=CommandLineTools_3.html
我也从来没有听说过它,并且 google acompc 并没有真正给你太多。
我找不到有关 ANT 任务的任何文档,但我找到了这篇博客文章,其中描述了如何使用“exec-task”执行此任务,build.xml 位于此博客文章的评论中:http://andkrup.wordpress.com/2010/06/ 08/flex-3-5-air-swc-ant-tasks/
更新
我正在重新阅读该博客文章,并注意到在底部,此代码发布在最后一条评论中:
显然 compc 只需需要不同的 config.xml 即可正确运行。
Okay, after some google-fu, I discovered compc won't work for air component libraries!.
Get this, you need to use acompc! Yep! Check this out: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_3.html
I've never heard of it either, and google acompc doesn't really give you much.
I can't find any documentation on an ANT task, but I found this blog post which describes how to do it with "exec-task", the build.xml is in the comment of this blog post: http://andkrup.wordpress.com/2010/06/08/flex-3-5-air-swc-ant-tasks/
Update
I was re-reading that blog post and noticed at the bottom this code was posted in the very last comment:
Apparently compc just needs a different config.xml to run correctly.