Reputation: 2238
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>
Upvotes: 4
Views: 2252
Reputation: 7588
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.
Upvotes: 7