Thanks for help, however I can’t get it to work. I’ve never used “mxmlc” from command line, so maybe I’m doing something wrong.
I get the output:
Loading configuration: C:\AIRSDK\AIR33.0\frameworks\flex-config.xml
Error: a target file must be specified.
I understand I must specify a target file. But what made me wonder is that’s it’s loading configuration from “flex-config.xml”.
When I compile my project I load from “airmobile-config.xml”, so I suppose changing “flex-config.xml” will not matter.
I looked into those two files and I found:
< warn-no-type-decl>true< /warn-no-type-decl>
I changed it to ‘false’ but I still get a lot of warnings:
Warning: return value for function ‘xxx’ has no type declaration.
However when I changed:
< show-actionscript-warnings>true< /show-actionscript-warnings>
to ‘false’, I don’t get warnings at all, so that part worked.
Ok, I managed to compile swf from command line with:
c:/AIRSDK/AIR33.0/bin/mxmlc --debug=true +configname=airmobile --warn-no-type-decl=false --output=bin/Test.swf --default-frame-rate=60 --default-size 480 800 --library-path+=libs --define+=CONFIG::FCM,true --external-library-path+=src/com/distriqt – src/Main.as
so I inderstand it now takes config from airmoble file, however “–warn-no-type-decl=false” still doesn’t work.