Skip to content

Application structure

cottage14 edited this page Jan 15, 2018 · 5 revisions

This is a minimalist FlexJS application structure:

<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://ns.apache.org/flexjs/basic"">

    <js:valuesImpl>
        <js:SimpleCSSValuesImpl />
    </js:valuesImpl>

    <js:initialView>
        <local:MyInitialView />
    </js:initialView>
    
</js:Application>

A FlexJS application should have at least the following parts:

The property <js:valuesImpl> which provides the mapping between objects and keys. FlexJS comes with a values mapper that uses CSS to associate classes with properties.

In <js:initialView> specify the first UI component that will be loaded and presented.

Your application will probably also have its own data model and even controller which you can also include.

Clone this wiki locally