简体   繁体   中英

Compile actionscript using mxmlc compiler

How would you compile actionscript code whose main class is inside a package using mxmlc command line compiler? Consider the following -

com.nuaavee::MainClass
com.nuaavee.utility::SomeUtility

MainClass imports SomeUtility class.

Is there a way to compile these classes keeping MainClass as the main class to generate a swf?

这是经过测试可以正常工作的解决方案-

mxmlc -output main.swf src/com/nuaavee/MainClass.as -source-path src/

If it's just a Utility class, it should be compiled inside the MainClass.swf as long as it's referenced. ie import SomeUtility;

If SomeUtility is actually another swf, you can compile it as a module to load in and out of your MainClass, but that's more complex.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM