Question
Using ant to build my project under hpux, mx.charts.* not found
I'm using ant to build my flex(with flex3). but i alway get <br /><br />Error: Definition mx.charts.series could not be found.<br /> [mxmlc] <br /> [mxmlc] import mx.charts.series.*;<br /><br />attaching build.xml FYI.<br /><br /><?xml version="1.0" encoding="utf-8"?><br /><project name="Flex Ant Builder Sample Project" basedir="."><br /> <taskdef resource="flexTasks.tasks" classpath="/home/cmsadm/ant/lib/flexTasks.jar" /> <br /> <property name="FLEX_HOME" value="/cms/flex3"/><br /> <property name="APP_ROOT" value="src"/><br /> <property name="DEPLOY_DIR" value="deploy"/><br /> <!-- compiled mxml/as file Name --><br /> <property name="fileName" value="index" /><br /> <!-- compiled mxml/as file ext --><br /> <property name="fileExt" value="mxml" /><br /> <!-- modular application's main application fileName --><br /> <property name="mainApp" value="" /><br /> <!-- output package direction,end with / --><br /> <property name="package" value="" /><br /> <br /> <!-- compile a mxml/as file --><br /> <target name="compile" depends="cleanCompile"><br /> <mxmlc <br /> file="${APP_ROOT}/${package}${fileName}.${fileExt}" <br /> output="${DEPLOY_DIR}/${package}${fileName}.swf"<br /> actionscript-file-encoding="UTF-8"<br /> keep-generated-actionscript="false"<br /> incremental="true"<br /> ><br /> <!-- Get default compiler options. --><br /> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> <br /> <!-- List of path elements that form the roots of ActionScript class hierarchies. --><br /> <source-path path-element="${FLEX_HOME}/frameworks"/><br /> <!-- List of SWC files or directories that contain SWC files. --><br /> <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true"><br /> <include name="libs" /> <br /> <include name="../bundles/{locale}" /><br /> </compiler.library-path><br /> <!-- Set size of output SWF file. --><br /> <default-size width="500" height="600" /><br /> </mxmlc><br /> <delete><br /> <!-- Deletes cache file --><br /> <fileset dir="${APP_ROOT}/${package}" includes="${fileName}*.cache" defaultexcludes="false"/><br /> </delete><br /> </target><br /> <!-- compile mxml file and Generate a Link Report for the embed module --><br /> <target name="CompileAndGenerateLinkReport"><br /> <mxmlc <br /> file="${APP_ROOT}/${package}${fileName}.${fileExt}" <br /> link-report="${APP_ROOT}/${package}${fileName}_LinkReport.xml"<br /> output="${DEPLOY_DIR}/${package}${fileName}.swf"<br /> actionscript-file-encoding="UTF-8"<br /> keep-generated-actionscript="false"<br /> incremental="true"<br /> ><br /> <!-- Get default compiler options. --><br /> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> <br /> <!-- List of path elements that form the roots of ActionScript class hierarchies. --><br /> <source-path path-element="${FLEX_HOME}/frameworks"/><br /> <!-- List of SWC files or directories that contain SWC files. --><br /> <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true"><br /> <include name="libs" /><br /> <include name="../bundles/{locale}" /><br /> </compiler.library-path><br /> <!-- Set size of output SWF file. --><br /> <default-size width="500" height="600" /><br /> </mxmlc><br /> <delete><br /> <!-- Deletes cache file --><br /> <fileset dir="${APP_ROOT}/${package}" includes="${fileName}*.cache" defaultexcludes="false"/><br /> </delete><br /> </target><br /> <!-- compile Modular mxml file with mainApp's Link Report --><br /> <target name="CompileModuleWithLinkReport"><br /> <mxmlc <br /> file="${APP_ROOT}/${package}${fileName}.${fileExt}" <br /> load-externs="${APP_ROOT}/${mainApp}_LinkReport.xml"<br /> output="${DEPLOY_DIR}/${package}${fileName}.swf"<br /> actionscript-file-encoding="UTF-8"
