Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to create an swc in Flash

Participant ,
Jan 04, 2012 Jan 04, 2012

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

TOPICS
ActionScript
3.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 05, 2012 Jan 05, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 05, 2012 Jan 05, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 12, 2012 Jan 12, 2012
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines