Jev*_*jev 4 apache-flex air ant actionscript-3
我正在尝试从我写的源代码编译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.
Run Code Online (Sandbox Code Playgroud)
并无法弄清楚如何解决它.
有任何想法吗?
UPDATE
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>
Run Code Online (Sandbox Code Playgroud)
好吧,经过一些google-fu之后,我发现compc 不能用于空气组件库!.
得到这个,你需要使用acompc!是的!看看这个:http : //livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_3.html
我也从来没有听说过,谷歌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>
Run Code Online (Sandbox Code Playgroud)
显然,compc只需要一个不同的config.xml即可正常运行.
| 归档时间: |
|
| 查看次数: |
2148 次 |
| 最近记录: |