What is SWC?
SWC is a file containing ActionScript source codes in a compiled status. The good thing about a SWC file is that it will help your projects compile faster because your compiler (flash CS4 for example) doesn’t have to compile everything from scratch any more.
In simple words, you use SWC files to access class packages instead of accessing the class .as files manually. This is how flash and flex source codes are orgenized also. There might be other good things about SWC also but that’s what I know about, feel free to let me know if there’s anything else
How to use SWC in Flash CS4?
If you have an SWC and you are trying to use that in your CS4 project, go to “properties” panel and click on the edit button next to your profile.
This will open the “Publish Settings” window. in this window, click on “settings…”.
Another window will open, go to Tab “Library Path” and click on the SWC icon to select an indivisual SWC file or you can put all your SWC files in one place and instead of clicking on the SWC icon, you may click on the folder icon just next to it and browse to the folder where you have all your swc files stored in it.
click ok and close the windows and save your project. now you will be able to import the classes being used in the swc file and run your project.
How to use SWC in Flash CS3?
Copy the SWC file to where you have you’re CS3 installed. somewhere like “C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components” and restart your CS3. Then open your component window, “Ctrl+F7″ and drag the added component into your library panel.
Then you should be able to run the classes with no problem.
How to use SWC in FlashDevelop?
FlashDevelop is my favorite flash compiler, and I feel proud to recommand that to any other AS3 coder! so, if you are using FlashDevelop, read this post to see how you can use SWC classes.
http://www.flashdevelop.org/community/viewtopic.php?t=1061
Best Regards,
Hadi





February 18th, 2011 3:26 pm
Thanks, it served me a lot
July 5th, 2011 1:43 am
Thanks a lot, I’ve been googling for a while.
August 14th, 2011 11:23 am
Also a more in depth example: http://articles.tutorboy.com/2010/02/10/flash-componentswc-developemnt-in-as3-0/
December 12th, 2011 6:31 pm
Thanks