How to create an swc in Flash
Copy link to clipboard
Copied
Hi
I've searched around, but couldn't find a decent answer for this question...
I have a set of AS3 classes (it's actually the code for papervision 3d), and I'd like to create an .swc library in order to speed up compiling. Papervision provides an swc, but I've modified the core library.
I don't use Flex, or Flash builder, for the moment I'm using only Flash CS5.5 and the command line.
How can I create an swc from this code that can then be imported into a Flash file as a library?
From my search I'm getting the sense I need to use the command line tool compc, but I don't see clear instructions on how to do this. Does anyone know? Thanks.
-rich
Copy link to clipboard
Copied
you can get that option in publish settings> flash there you can see Export swc option checkbox enable it then you will get swc of your code. But if you wanna make classes to swc then it's not easy task. because it just compiled only those classes in swc which you used in your code that's it. swc format is made for make a compied format of your code.
Copy link to clipboard
Copied
If you have Windows as an OS, perhaps consider FlashDevelop (http://www.flashdevelop.org/) with the ExportSWC plugin (http://sourceforge.net/projects/exportswc/)? Looks like some people may be having some issues with it working 'right out of the box' with the latest release of FlashDevelop, but there seem to be answers to most problems within the FlashDevelop forums.
Copy link to clipboard
Copied
FlashDevelop looks good, but I'm doing most development on the Mac right now. I wonder what the FlashDevelop plugin does under the hood? I'm thinking compc is the answer I'll have to look into it. Thanks

