I have a library project that is generic (supports browser, mobile and desktop profiles) and a Flex project that runs in the browser and depends on this library. When I debug or create a release of the main application from inside Flash Builder it runs fine in the browser. But when I create the SWF from my Ant task I get multiple errors at runtime:
Error:
VerifyError: Error #1014: Class flash.data::SQLConnection could not be found.
Error:
ReferenceError: Error #1065: Variable _class_embed_css_Assets_swf_1175738391_mx_skins_cursor_BusyCursor_347371275 is not defined.
Error:
ReferenceError: Error #1065: Variable _class_embed_css_Assets_swf_1175738391_cursorStretch_1614050290 is not defined.
Error:
ReferenceError: Error #1065: Variable ImageButtonSkin__embed_mxml_Assets_swf___brokenImage_1468354307 is not defined.
Here is my ANT task:
<!-- Build and output the Application.swf -->
<target name="Compile Flex" >
<mxmlc file="${PROJECT_MXML_APPLICATION}" output="${PROJECT_OUTPUT_SWF}">
<include-libraries dir="${FCLIB_BIN}" append="true">
<include name="FcLibrary.swc" />
</include-libraries>
</mxmlc>
</target>
It seems like the AIR classes are getting compiled in to the SWF. It also seems like the defaults.css is might be getting overwritten by the FcLibrary defaults.css. I'm not sure how to solve either. Any help would be appreciated.