Spring Actionscript version 2.0 is now officially in beta. The beta is feature complete and we will try to work towards a bug-free 2.0 release soon!
If you are looking for version 1.x, please follow this link.
Anything you read and download here might be unstable, we ourselves have been using version 2.0 in several of our daily projects and currently we consider the code to be solid. Feel free to play around and test the new possibilities of Spring Actionscript v2.0. Please refer to our forums if you have any questions, criticism or suggestions.
Spring ActionScript is an offshoot of the Java-based Spring Framework written in ActionScript 3. It is targeted for the Flash, Flex and AIR platforms. The framework contains a versatile Inversion of Control Container, a micro MVC library and extensions for the Cairngorm and PureMVC frameworks.
Since the v2.0 beta is in continueing development it might be a good idea to create your own build directly from the SVN sources.
In order to do this check out this branche: https://src.springframework.org/svn/se-springactionscript-as/branches/2.0
You either create an IDE project for the various projects in the branche, or use the provided Maven pom.
Running the mvn clean compile command will build all the libraries, mvn clean test will run the tests. mvn clean site post-site will generate the site and reference documentation.
NB: Generating the documentation locally will require you to install the javax.media.jai_core library v1.1.3 manually in your local maven repository.
Spring Actionscript uses the following base libraries internally, the functionality that Spring uses is merged into the swc's so there is no immediate need to include these libraries as well.
The .swc files for these libraries can be downloaded from the AS3Commons website
Once you have downloaded the files, they need to be installed in a permanent library
You need to inform your IDE that you want these libraries included in the search path of the compiler and build.
Use the following code to use it in your maven project:
<repositories> ... <repository> <id>yoolab.org-releases</id> <url>http://projects.yoolab.org/maven/content/repositories/releases</url> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>yoolab.org-snapshots</id> <url>http://projects.yoolab.org/maven/content/repositories/snapshots</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> ... </repositories>
ElementRiver has created the SourceMate plugin for Flashbuilder, amongst other things this features code completion for metadata. You can download a configuration file for SourceMate containing the Spring Actionscript specific metadata here.
If you are using Flashbuilder 4.5+ you won't need this anymore since this version of the IDE offers native metadata completion. The downloadable swc's have been embedded with the appropriate meadata.xml files.