Flex Vectors Bidirectional Serialization Example with GraniteDS
This sample application shows how to use Java annotations to get AS3 Vectors instances in your Flex application from a GraniteDS back-end.
- Clone the project (or download it):
$ git clone https://github.com/fwolff/flex-vectors-example.git
-
Under Eclipse, import it as an existing application.
-
Edit flex-vectors-example/build.xml and fix the following section, according to your environment:
<!-- EDIT THIS PART -->
<property name="FLEX_HOME" value="/path/to/flex_sdk_4.10.0"/>
<property name="deploy.dir" value="/path/to/tomcat/webapps"/>
<!-- /EDIT THIS PART -->
-
Open an Ant view, drag the build.xml file and run the "deploy" target.
-
Start Tomcat.
-
Point your browser to: http://localhost:8080/flex-vectors/.
Have a look at the source code, in the java and flex directories, you should understand pretty quickly how it works.