THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Create a basic application
An application requires a valuesImpl
and an initialView
:
<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>
<js:View>
<js:Label text="Hello World"/>
</js:View>
</js:initialView>
</js:Application>
Create the initial view in a separate class
You may separate the initial view by creating a file named MyView.mxml with the following content:
<js:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/flexjs/basic">
<js:Label text="Hello World"/>
</js:View>
The application can reference this class to set the initial view:
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/flexjs/basic"
xmlns:example="*">
<js:valuesImpl>
<js:SimpleCSSValuesImpl/>
</js:valuesImpl>
<js:initialView>
<example:MyView/>
</js:initialView>
</js:Application>