Skip to main content
Inspiring
January 4, 2012
Question

How to create an swc in Flash

  • January 4, 2012
  • 2 replies
  • 3954 views

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

This topic has been closed for replies.

2 replies

Inspiring
January 6, 2012

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.

flextnetAuthor
Inspiring
January 13, 2012

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

Inspiring
January 5, 2012

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.