...
The key with Cordova and FlexJS is the www
directory that the cordova command creates in the application folder. The www
directory contains the actual program that gets run on the device or browser. Since FlexJS creates HTML and JavaScript, you simply replace the contents of the www
directory with your FlexJS application.
Requirements
- Install Cordova according to the instructions in the Apache Cordova web site.
- Install the latest FlexJS SDK and kit
- Set your path to include the
${FLEXJS_INSTALLDIR}/js/bin
directory.
Creating the Application
To make things easier, FlexJS comes with an ANT build script called cordova-build.xml
located in the FlexJS install directory. This script assumes a particular structure for your files to make it easier to build everything. Follow these instructions to create a FlexJS application to works with Cordova.
...