Compiling as3 project to swc file in flashbuilder

六月ゝ 毕业季﹏ 提交于 2019-12-05 21:03:58

Inside FlashBuilder create a new "Flex Library Project".

It will take you through a new project wizard that is similar to an Actionscript Project. Once it is created, you can add your .AS classes to the source folder. As long as Project->Build Automatically is checked, it will automatically create (and update) a SWC file in your designated output folder, usually (/bin).

If you want to pick and choose particular classes or include external libraries, SWFs, or other SWCs, select Project->Properties->Flex Library Build Path there is a tab called "Classes" where you can select which classes you want exported into the SWC.

You can just create a library project for this.

Move all of your code into this project and build the project. The output will be a .swc file in the bin directory.

You can also do this from the command line using the compc (short for component compiler) and incorporate it into an ANT task or a Maven build.

Cheers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!