我正在尝试从我所写的源代码编译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.也想不出怎么解决它。
有什么想法吗?
更新
tThe公司代码:
<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>发布于 2011-07-06 14:04:10
好的,经过一些google-fu之后,我发现compc 不适用于air组件库!。
拿着这个,你需要用acompc!是啊!看看这个:http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_3.html
我也从未听说过它,google acompc也没有给你多少好处。
我找不到关于ANT任务的任何文档,但是我找到了这个博客文章,它描述了如何使用“exec-任务”,build.xml在这个博客文章的评论中:http://andkrup.wordpress.com/2010/06/08/flex-3-5-air-swc-ant-tasks/。
Update i重新阅读了那篇博客文章,并注意到下面的这段代码是在最后一条评论中发布的:
<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才能正确运行。
https://stackoverflow.com/questions/6140271
复制相似问题