How to Compile SWC
If you use Adobe Flex to create SWF files for Flash Player, you will need to compile SWC files that contain the SWF file and an XML file. Flex applications use the SWC file to get the SWF file and the included libraries for use with Flash Player. Compile SWC files from Flex's Compc command line tool.
Instructions
-
-
1
Open the Compc command line in Flex.
-
2
Type the following:
compc -source-path
-
-
3
Type an output path on the next line, such as:
-output c:/Path/To/Directory/FileName.swc
-
4
Type anything you want to include on separate lines by type. For example, to include component classes, type:
-include-classes Class1.toInclude Class2.toInclude
You can also include files with "include-file name path," namspaces with "include-namespaces uri," sources with "include-sources path-element" and stylesheets with "include-stylesheet name path."
-
5
Press "Enter" to run the compiler when your options are set.
-
1