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. 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.
public function addElementAt(c:Object, index:int):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.
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.