问题描述
|
我正在尝试从已编写的源代码编译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.
并且不知道如何解决它。
有任何想法吗?
更新
t compc代码:
<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>
解决方法
好的,经过一番谷歌搜索,我发现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 output=\"${dir.build}/${ant.project.name}.swc\" target-player=\"10.0.0\">
<load-config filename=\"${FLEX_HOME}/frameworks/air-config.xml\" />
</compc>
显然compc只需一个不同的config.xml即可正确运行。