Installation
Requirements
Flex SDK downloads are available from Adobe open source.
Downloads
Binaries (distribution) and source code (foundry-bundle) can be downloaded on the SourceForge downloads page.
You may also use Subversion to checkout the source code from SourceForge. See there for more.
Using ActionScript Foundry in FlexBuilder
FlexBuilder project properties
To add the ServeBox Foundry in FlexBuilder, download the binaries of the Foundry and extract the SWCs from the archive.
Open FlexBuilder and open the Flex Build Path page of your project properties, then select the Library Path tab. Select Add SWC and browse to add the SWC files (commons, foundry and toolbox) to the compiler path.
Using Maven
To use Maven, add the artifacts as dependencies using the Maven Flex plugin as shown in the .POM below :
<?xml version="1.0" encoding="UTF-8"?> <project> ... <pluginRepositories> ... <pluginRepository> <id>Maven.ServeBox.org</id> <name>ServeBox.org repository</name> <url>http://www.servebox.org/repository</url> </pluginRepository> </pluginRepositories> ... <repositories> ... <repository> <id>Maven.ServeBox.org</id> <name>ServeBox.org repository</name> <url>http://www.servebox.org/repository</url> </repository> </repositories> <build> ... <plugins> <plugin> <groupId>org.servebox.flex</groupId> <artifactId>flex-plugin</artifactId> <extensions>true</extensions> <inherited>true</inherited> </plugin> </plugins> </build> <dependencies> ... <!-- ACTIONSCRIPT FOUNDRY DEPENDENCIES --> <dependency> <groupId>org.servebox.foundry</groupId> <artifactId>servebox-commons</artifactId> <version>2.0.0</version> <type>swc</type> </dependency> <dependency> <groupId>org.servebox.foundry</groupId> <artifactId>servebox-foundry</artifactId> <version>2.0.0</version> <type>swc</type> </dependency> <dependency> <groupId>org.servebox.foundry</groupId> <artifactId>servebox-toolbox</artifactId> <version>2.0.0</version> <type>swc</type> </dependency> </dependencies> ... </project>
You may then use the flex:eclipse goal of the Maven Flex Plugin to create the Eclipse project descriptors.
Building from sources
Using Flex SDK command-line compiler
If you want to use compc to build from the source, open a command-line window, and go to the servebox-commons directory, then type:
compc -compiler.source-path src -include-sources src -output servebox-commons.swc
Note: if the Flex SDK binaries are not present in your PATH environment variable, use an absolute path to the executable.
The operation should be repeated for ServeBox-Foundry and ServeBox-Toolbox. For those projects, you will need to add dependencies to the other libraries.
For example, if you want to compile the ServeBox-Toolbox library:
Change your directory to servebox-foundry, and type the following command line. You can notice that foundry has dependencies to the commons library, and some Flex SDK libraries.
compc
-compiler.source-path src -include-sources src -output servebox-foundry.swc -compiler.external-library-path path/to/servebox-commons.swc -compiler.external-library-path path/to/flexsdk/frameworks/libs/player/playerglobal.swc -compiler.external-library-path path/to/flexsdk/frameworks/libs/framework.swc
Change your directory to servebox-toolbox, and type the following command line. You can notice that toolbox has dependencies to the commons and foundry libraries, and some Flex SDK libraries.
compc
-compiler.source-path src -include-sources src -output servebox-toolbox.swc -compiler.external-library-path path/to/servebox-commons.swc -compiler.external-library-path path/to/servebox-foundry.swc -compiler.external-library-path path/to/flexsdk/frameworks/libs/player/playerglobal.swc -compiler.external-library-path path/to/flexsdk/frameworks/libs/framework.swc
Note: replace “path/to” with the appropriate paths.
Using Maven
Simply checkout the source code and run from a command-line :
mvn clean install
Sub-Pages
- Introducing ActionScript Foundry
- Installation
- Basic types and structures
- The collection packages
- The MVC Framework
- Remote procedure call
- Building localized Flex Applications
- Using SmartForm
- Using the FlexBrowser
- Full-text search tree
- ActionScript Foundry: a beginner’s guide
- Accessing Remote Services
- Developping a contact manager application (CManager) - Part 1



