Hi
I am trying to build my Flex/Java project with ant because it is the way
we build all the projects but for some reason the SWF file that is
generated by the ant script is not working but the one generated by Flex
Builder works.
Also I noticed that the one created by ANT is smaller than the one in FB
by 100KB.
Some of the exceptions I get from the ANT swf when I start the
application are:
ReferenceError: Error #1065: Variable
Main__embed__font_Lucida_Grande_bold_normal_772051250 is not defined.
ReferenceError: Error #1065: Variable
Main__embed_css_skins_yflexskin_swf_ComboBoxArrow_editableDisabledSkin_6\
88445556 is not defined.
ReferenceError: Error #1065: Variable
Main__embed__font_Myriad_medium_normal_23887842 is not defined.
Looks like most of this errors have to do with embeded resources, I am
embeding some fonts and the yahoo skin for flex.
Here it is my mxml task, don't say anything about the hard coded paths,
I know I have to use properties but first I am trying to get a working
SWF :P .
<mxmlc file="${source.flex}/Main.mxml"
output="${build.flex}/Main.swf"
services="src/main/webapp/WEB-INF/flex/services-config.xml"
keep-generated-actionscript="false"
context-root="Automation"
incremental="false"
fork="false">
<load-config
filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks" />
<source-path path-element="${source.flex}" />
<compiler.library-path dir="${FLEX_HOME}/frameworks"
append="true">
<include name="libs" />
</compiler.library-path>
<compiler.external-library-path dir="src/main/flex_libs"
append="true">
<include name="**/*" />
</compiler.external-library-path>
</mxmlc>
Am I missing something in the build task?
Thanks