-
Notifications
You must be signed in to change notification settings - Fork 50
User Guide
The Royale Compiler does many things besides compile MXML and ActionScript into JavaScript. But if that's all you want to do, you can use the compiler with Apache Maven, Apache Ant, several IDEs, NPM and the command-line. Below are some pointers to getting started.
There are some examples in the apache/royale-asjs repo in the examples folder. The pom.xml files should be useful as a starting point. There are also Maven archetypes available in Apache Royale releases.
In an Apache Royale distribution, there is a compiler-royaleTasks.jar in the js/lib folder that contains Ant tasks for the Royale Compiler. There is an mxmlc task for creating applications and a compc task for creating libraries.
Consult your IDE documentation for how to launch the Royale Compiler.
You should be able to run mxmlc or compc from the command-line after installing Royale via NPM. Use 'mxmlc --help' to see the latest list of options.
The js/bin folder should contain mxmlc and compc scripts that will launch the compiler. Use 'mxmlc --help' to see the latest list of options.