ActionScript® Component Compiler Tool for FlashDevelop® Projects
- Supports ActionScript Compiler 2.
- Supports AS Documentation.
- All compiler options in the project file (
*.as3proj) are used (except for movie options such asdefault-framerate,default-size, etc.). - No extra steps needed to setup the project. Just click
Project > New Project > AS3 Library Project. (NotAS3 Library SWC!) - You can build the project the same way you would build a
.swffile. Just clickProject > Build Projector pressF8(default shortcut). - Detailed output is redirected to the Output Panel.
- Creates
obj\$(ProjectID)Config.xmlalmost exactly the same way asFDBuild. You can use this file for debugging purposes. - Supports AIR and AIR Mobile platforms. Just go to
Project Properties > Outputand choose from the Platform dropbox. No extra work is needed (no more manual+configname=air). - Supports conditional output path: in release mode,
"-debug"in the path is removed*. - Include sources easily by just adding them to the project classpath list.
- Easily include library paths with
Right Click > Add To Library(no more manual-libraryPaths+=...).
Simply open swcbuild.fdz.
Alternatively, if you install using AppMan in FlashDevelop, it will be installed automatically.
- This installation file makes changes in
$(BaseDir)\Data,$(BaseDir)\Projectsand$(BaseDir)\Tools.- $(BaseDir)\Data\SWCBuild
- $(BaseDir)\Projects\132 ActionScript 3 - AS3 Library Project
- $(BaseDir)\Tools\swcbuild
- Uninstalling the extension is easy - delete the above folders.
- Under
$(BaseDir)\Data\SWCBuild, there are three image files calledProject (1).png,Project (2).pngandProject (3).png. Those images can be used as the project template image by replacingProject.pngunder$(BaseDir)\Projects\132 ActionScrip 3 - AS3 Library Project. - Changing output path requires an extra step: in the Project Properties panel, change Compilation Target to
Applicationfirst, then specify the desired output path, then change back toCustom Build. - Disable/enable asdoc options in the
Project Properties > Build Tab > Pre-Build Command Line. - Use
swcbuild -helpto view details on the command-line arguments.- For example,
-asdocis alwaysfalsewhen-debugis set totrue.
- For example,
- To use the
swcbuild.exetool with an existing project, go to Project Properties panel:- Set Compilation Target to
Custom Build. - Set Pre-Build Command Line to
"$(BaseDir)\Tools\swcbuild\swcbuild.exe" "$(ProjectPath)" "-compiler=$(CompilerPath)".- These are only the required arguments. Use
swcbuild -helpto see additional information.
- These are only the required arguments. Use
- Set Compilation Target to
*Regex for removing "-debug" in path in release mode: (This is a bit different from what FDBuild uses.)
path = Regex.Replace(path, @"(\S)[-_.][Dd]ebug([.\\/])", "$1$2");