flex – Ant任务compc用于空气错误
发布时间:2020-12-15 01:46:13 所属栏目:百科 来源:网络整理
导读:我正在尝试从我写的源代码编译SWC,但由于某种原因我收到了这个错误: [compc] Error: 'flash.events:StageOrientationEvent' is undefined.[compc][compc] Error: 'flash.data:EncryptedLocalStore' is undefined.[compc][compc] Error: 'flash.desktop:Nati
我正在尝试从我写的源代码编译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. 并无法弄清楚如何解决它. 有任何想法吗? 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> 解决方法
好吧,经过一些谷歌,我发现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> 显然,compc只需要一个不同的config.xml即可正常运行. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读