Compiling SWC files

In case you purchased developer license with component sources, and made some changes, you'll need to compile your own SWC file. Here are a step-by-step instructions on how to do this.

  1. create new Flex project, name it "amStockSources"
  2. copy contents of the Source folder from the amStock flex component zip file to the src folder of this project
  3. create new flex library project and name it amStock
  4. right-click on the project name in the Flex Navigator panel and select "Properties"
  5. select "Flex library build path -> Source path", click "Add folder" button and browse to the amStockSources/src folder, click OK.
  6. click "Browse" button near "Main source folder" and select [source path] src folder, click OK.
  7. click "Library path" at the top, click add swc and browse to the amChartsFB3.swc or amChartsFB4 file (depends on the SDK you use) (it's from the amCharts flex component package), click OK.
  8. click "Classes" at the top, expand the directory tree, check checkbox near "com" folder so that all the files inside would also be selected. Then expand it deeper and deselect "Version" file and "styles" folder.
  9. click "Assets" at the top, expand the directory tree and check "design.mxml" and "manifest.xml" files
  10. click "Flex Library compiler" on the left
  11. in the Namespace url enter http://www.amcharts.com/com_internal
  12. click "browse" near manifest file and select manifest.xml
If you have set that your projects are build automatically, the compiled swc must now be in amStock/bin folder.