The Application class is the main class and entry point for a FlexJS
application. This Application class is different than the
Flex SDK's mx:Application or spark:Application in that it does not contain
user interface elements. Those UI elements go in the views (ViewBase). This
Application class expects there to be a main model, a controller, and
an initial view.
The org.apache.flex.core.IValuesImpl that will
determine the default values and other values
for the application. The most common choice
is org.apache.flex.core.SimpleCSSValuesImpl.
Implementation public function set valuesImpl(value:IValuesImpl):void
public function addElement(c:Object, dispatchEvent:Boolean = true):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Add a component to the parent.
Parameters
c:Object — The subcomponent to add.
dispatchEvent:Boolean (default = true) — Whether to dispatch an event after adding the child.
addElementAt
()
method
public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Add a component to the parent.
Parameters
c:Object — The subcomponent to add.
index:int — The index where the subcomponent should be added.
dispatchEvent:Boolean (default = true) — Whether to dispatch an event after adding the child.
generateMXMLAttributes
()
method
public function generateMXMLAttributes(data:Array):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
An method called by the compiler's generated
code to kick off the setting of MXML attribute
values and instantiation of child tags.
The call has to be made in the generated code
in order to ensure that the constructors have
completed first.
Parameters
data:Array — The encoded data representing the
MXML attributes.
Dispatched at startup. Attributes and sub-instances of
the MXML document have been created and assigned.
The component lifecycle is different
than the Flex SDK. There is no creationComplete event.
Dispatched at startup before the instances get created.
Beads can call preventDefault and defer initialization.
This event will be dispatched on every frame until no
listeners call preventDefault(), then the initialize()
method will be called.