It's been a while since I set this up, but I have two things that I seem to remember I needed to add to my mxmlc compile task for AIR:
<!-- use AIR config file, not flex one --> <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/> and <!-- AIR SWC path --> <external-library-path dir="${FLEX_HOME}/frameworks/libs/air" append="true"> <include name="airglobal.swc" /> </external-library-path> I can't say this is absolutely correct, but it worked for me. -----Original Message----- From: flexcoders@yahoogroups.com on behalf of markflex2007 Sent: Tue 17/03/2009 15:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] mxmlc.exe and config file? I have a AIR application. I try to do this mxmlc.exe -output test.swf test.mxml I get the error: load configuration file c:\flex_sdk\frameworks\flex-config.xml and can not specified class 'mx.core.WindowApplication' for test.mxml. It seem I need change the configuration file to air-config.xml. Please help me to know how to do this change. Thanks Mark ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________
<<winmail.dat>>