Download

Go here for information on how to download Jangaroo manually. more...

Overview of the directory structure

In this example project, any Jangaroo source code is to be located in PROJECT_HOME/src/main/joo/ and any other web application files, such as HTML files, are located in PROJECT_HOME/src/main/webapp/. The Maven build file pom.xml has to be placed directly in PROJECT_HOME and will build the example and create the resulting Web application in the target directory. You could use this example setup and the buildĀ file as a template for small Jangaroo projects.

In PROJECT_HOME, create the following directories and (so far empty) files:

src/main/joo/HelloWorld.as
for your first ActionScript 3 source file that will be compiled to JavaScript and run in any browser
src/main/webapp/index.html
for an HTML wrapper that starts your application
pom.xmlfor the Maven build instructions for your project

If you do not want to create files and copy text into these files manually, but just want to study a working example, you can download and unzip a slightly more sophisticated "hello world" example here.

Let's first look at the actual Jangaroo codeĀ in HelloWorld.as.