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.
This is the CreateJS Application class which must be used in place of the normal
FlexJS Application. CreateJS uses the HTML5 <canvas>, rather than the HTML DOM. This
class sets up the canvas and injects the necessary HTML elements into the index.html
file to bootstrap CreateJS.
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.