Ant compc problems for air bugs

I am trying to compile SWC from a source that I wrote, but for some reason I get 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

t 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> {FLEX_HOME} / frameworks / libs" append = "true"> <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> 
+4
source share
1 answer

Well, after some google-fu, I discovered that compc will not work for libraries aircraft components! .

Get it, you need to use acompc! Yeah! Check it out: http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_3.html

I've never heard of it, and google acompc really does not give you much.

I can not find documentation ANT task, but I found this blog post that describes how to do this using the "exec-task", build.xml file located in the comments on this blog post: http: // andkrup .wordpress.com / 2010/06/08 / flex-3-5-air-swc -ant-tasks /

Update I read this blog post and noticed at the bottom of this code was published in the latest comments:

 <compc output="${dir.build}/${ant.project.name}.swc" target-player="10.0.0"> <load-config filename="${FLEX_HOME}/frameworks/air-config.xml" /> </compc> } / $ {ant.project.name} .swc" target-player = "10.0.0"> <compc output="${dir.build}/${ant.project.name}.swc" target-player="10.0.0"> <load-config filename="${FLEX_HOME}/frameworks/air-config.xml" /> </compc> {FLEX_HOME} /frameworks/air-config.xml" /> <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 another config.xml file for proper operation.

+7
source

All Articles