Compile .AS Files through Flex 4
I've got the environment variables in Win7 set-up so that I can compile .as files through prompt.
But it shows some warning about not having FactoryClass, so I can't compile using shared libraries. How can I compile the file with classes and libraries imported ?
I'm trying to compil开发者_JAVA百科e with mxmlc file.as
Thanks
Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.
Find the flex-config.xml file under the "frameworks" directory where you saved the Flex 4 files, and change the following from "false" to "true":
<static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
to -->
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
I'm on a Linux box here, but this should also do the trick on a Windows platform as well.
Cheers!
You can just add this into your compile time options, for example;
mxmlc -static-link-runtime-shared-libraries=true source.as
精彩评论