Ant 任务 compc 处理空中错误

发布于 2024-11-09 18:08:49 字数 877 浏览 0 评论 0原文

我正在尝试从我编写的源代码编译 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等风来 2024-11-16 18:08:49

好吧,经过一番谷歌搜索后,我发现 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 即可正确运行。

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:

<compc output="${dir.build}/${ant.project.name}.swc" target-player="10.0.0">
    <load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
</compc>

Apparently compc just needs a different config.xml to run correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文