【发布时间】:2011-05-26 14:31:02
【问题描述】:
我正在尝试从我编写的源代码编译 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>
【问题讨论】:
-
请将文本中的错误添加到您的问题中,而不是发布指向外部资源的链接。干杯
-
哪个 AIR 和哪个 Flex 版本?似乎您正在尝试编译一个移动项目,还有与元数据相关的警告。
-
我使用的是 flex_sdk_4.5.0.19786,Target 是 10.2,swc 是桌面应用程序的一部分。一切都很好,直到我添加了
EncryptedLocalStore功能 -
遇到同样的问题。找到解决方案了吗?
-
试过添加空中库、移动库,都没有结果。
标签: apache-flex actionscript-3 ant air