...
- 1/11/2013 - MXML-based project can now be compiled into a working HTML/JS project
- 2/10/2013 - Added HTTPService, LazyCollection, and a List class.
- 3/01/2013 - Added Adobe Flash Builder integration.
- 4/23/2013 - Updated to use FalconJX instead of FalconJS.
- 6/27/2013 - Added the beginnings of MXML states and data binding.
- 7/22/2015 - Updated to latest process.
- 8/24/2015 - Updated with pre-requisites and automated script info
Set Up
This is the setup for developers working with the source code. If you only want to use Flash Builder to play build applications with the FlexJS framework, see: Using FlexJS with Adobe Flash Builder.
...
Git should print out its version if it is already installed. If not, install Git for your platform from here: http://git-scm.com/downloads. Many folks prefer GUI versions of Git, which is fine as long as there is a command-line version as well. Add Git to your PATH environment variable.
G. Google Closure Linter (Mac only)
The Google Closure Linter can be installed by following the directions here: https://developers.google.com/closure/utilities/docs/linter_howto
It should automatically make the linter available. No need to change paths or environment variables. Some folks on OSX had permission issues after the install. See their support channels for assistance.
H. JSHint (Mac only)
You will need npm (Node Package Manager) to install JSHint. You can get npm from here: https://nodejs.org/
The JSHint utility can be installed by following the instructions here: http://www.jshint.com/install/
JSHint will also be automatically available. No need to change paths or environment variables. On OSX some folks had permission issues after the install. See their documentation on using -g and sudo.
Downloading and Building the Source
...
Get the ASJS code from Apache Git via
Code Block git clone https://git-wip-us.apache.org/repos/asf/flex-asjs flex-asjs cd flex-asjs git checkout develop
Get the Falcon code from Apache Git at
Code Block git clone https://git-wip-us.apache.org/repos/asf/flex-falcon.git flex-falcon cd flex-falcon git checkout develop
Get the FlexUnit code from Apache Git at
Code Block git clone https://git-wip-us.apache.org/repos/asf/flex-flexunit.git flex-flexunit cd flex-flexunit git checkout develop
Get the Flex SDK code from Apache Git at
Code Block git clone https://git-wip-us.apache.org/repos/asf/flex-sdk.git flex-sdk cd flex-sdk git checkout develop
Get the TLF code from Apache Git at
Code Block git clone https://git-wip-us.apache.org/repos/asf/flex-tlf.git tlf cd tlf git checkout develop
Get the BlazeDS code from Apache Git at
Code Block git clone https://git-wip-us.apache.org/repos/asf/flex-blazeds.git flex-blazeds cd flex-blazeds git checkout develop
- In the flex-sdk folder, follow the README to set up environment variables, then run ant run 'ant' to build the sdk.
- In the flex-falcon folder:
- In the
- compiler folder
- run 'ant' to build
- SWF compiler.
- In the
- compiler.jx folder, run 'ant
- ' to build
- the cross-compiler
- In the asjs flex-flexunit folder, run ant to build flexunit.
- In the flex-asjs folder, run 'ant' follow the README to download Google Closure Library, the linters and set up more environment variables, then run ant to build the FlexJS libraries.
After The Build Completes
- In the flex-asjs folder, change to examples/DataBindingTest flexjs/DataBindingExample and run ant there. It should create bin-debug/DataBindingTest DataBindingExample and bin/js-debug and bin/js-release folders containing a debug SWF, a debug HTML/JS/CSS version and a minified HTML/JS/CSS version respectively. Open the .html file in those folders in your browser.
...
We are using Eclipse Helios for Java 1.6 compatibility because at least one of the jars (flex-oem-compiler) needs to be 1.6 compatible to work with Flash Builder. There are eclipse project files in the falcon repo. The run/debug configuration for building a FlexJS SWF in Eclipse needs the following settings (/Users/aharui/git/flex/master/asjs is my flex-asjs repo):
Program Arguments:
...