I'm trying to compile my AIR application with Ant, using the mxmlc Ant Task. It seems to compile fine, and I get a .swf, but when I try to run it with ADL, I get the message "Class mx.core::WindowedApplication could not be found." It looks like the AIR libraries aren't being included properly.
Here's my mxmlc task:
<mxmlc
file="${MAIN_MXML}"
output="${DEPLOY_DIR}/MyApp.swf"
compatibility-version="3"
locale="en_US"
static-rsls="true"
debug="${DEBUG_FLAG}"
optimize="true"
link-report="${DEPLOY_DIR}/report.xml"
configname="air">
<load-config filename="${FLEX_HOME}/frameworks/air-config.xml" />
<library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
<include name="*.swc" />
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true">
<include name="*.swc" />
</library-path>
<library-path dir="${FLEX_HOME}/frameworks/locale" append="true">
<include name="{locale}" />
</library-path>
<source-path path-element="${SRC_DIR}" />
</mxmlc>
Any idea why this is happening? I've tried not including the load-config section and not including the library paths, but it's always the same result - it can't find WindowedApplication.
Thanks!