Application developers can create applications with Apache FlexJS via a number IDEs, from the command line, with Ant, and soon, Maven. Below are links to instructions for installing FlexJS with links to instructions for specific IDEs.
To install the Apache FlexJS SDK, you can do one of the following:
- Use the Apache Flex SDK Installer
- Use Node Package Manager (npm)
- Download the binary package and use Ant
- Download the source code and build it with Ant (and soon Maven)
- Use Maven
Installing FlexJS via the Apache Flex SDK Installer
The Apache Flex SDK Installer is only supported on Mac and Windows.
- Download and run the Apache Flex Installer from http://flex.apache.org/installer.html. You may have to uninstall any older version of the Apache Flex Installer before running it.
- Choose an Apache FlexJS release from the list of options.
- Follow the installation instructions.
- Then if you wish to use this SDK in an IDE, follow the instructions for your IDE below
Installing FlexJS via the Node Package Manager (npm)
Assuming you already have Node Package Manager installed, installation is as simple as:
npm install flexjs -g
Once the installation completes, if you wish to use this SDK in an IDE, follow the instructions for your IDE below
Installing FlexJS by Downloading a Binary Package
Assuming you have installed Apache Ant (which is often pre-installed on Linux and Mac):
- Download the Apache FlexJS binary package from: http://flex.apache.org/download-flexjs.html
- Expand the package into a folder.
- In the folder where you expanded the FlexJS binary package, run ant -f installer.xml and follow the prompts.
Once the installation completes, if you wish to use this SDK in an IDE, follow the instructions for your IDE below
Installing FlexJS by Downloading and Building the Source Package
- Download the Apache FlexJS source package from: http://flex.apache.org/download-flexjs.html
- Expand the package into a folder.
- Follow the instructions in the README to install and configure the "Install Prerequisites".
- Run ant.
- In the folder where you expanded the FlexJS release, run ant -f installer.xml and follow the prompts.
Once the installation completes, if you wish to use this SDK in an IDE, follow the instructions for your IDE below
Using FlexJS from the Command Line
Compiling your application is generally done using mxlmc, and a minimal command looks something like this:
$FLEX_JS_PATH/js/bin/mxmlc -compiler.source-path=src src/MyApp.mxml
For more information on different arguments which can be used and an overview of the commands, see this page.
Using FlexJS with Maven
TBD
Using IDEs for FlexJS Application Development
Here are links to instruction for setting up FlexJS in various IDEs:
- Adobe Flash Builder
- IntelliJ IDEA
- FDT
- Visual Studio Code
- FlashDevelop (needs link)
- Moonshine (needs link)