Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 空中错误的蚂蚁任务compc_Apache Flex_Actionscript 3_Ant_Air - Fatal编程技术网

Apache flex 空中错误的蚂蚁任务compc

Apache flex 空中错误的蚂蚁任务compc,apache-flex,actionscript-3,ant,air,Apache Flex,Actionscript 3,Ant,Air,我正试图从我编写的源代码编译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]

我正试图从我编写的源代码编译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 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>

好的,在谷歌搜索了一些fu之后,我发现compc不适用于air组件库

得到这个,你需要使用acompc!是的!看看这个:

我也从来没听说过,谷歌acompc也没给你多少

我找不到任何关于ANT任务的文档,但我找到了这篇描述如何使用“exec task”执行任务的博文,build.xml在这篇博文的评论中:

更新 我重新阅读了那篇博文,注意到在底部,这段代码在最后一条评论中发布:

<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即可正确运行。

请在问题中添加文本错误,而不是发布指向外部资源的链接。干杯哪款AIR和哪款Flex版本?似乎您正在尝试编译一个移动项目,还有与metadate相关的警告。我使用的是flex_sdk_4.5.0.19786,目标是10.2,swc是桌面应用程序的一部分。在我添加了具有相同问题的
EncryptedLocalStore
功能之前,一切都很好。找到解决方案了吗?已尝试添加air库、移动库,但都没有任何结果。要为air编译swf,您需要在
中添加相同的行。谢谢!我搔了几个小时的头才发现这个:)