Tech Blog

Flex Application Initialization event order

Posted At : January 23, 2007 8:39 PM

For my own reference as much as anyone else, this is the order of events fired by a flex application (or any UIComponent) while loading:

preinitialize
Fired before any initialization - no sub components are defined. You can reference variables of the component but not children.
initialize
Once all the subcomponents have been created this is fired - nothing has been rendered at this point.
creationComplete
Component has been created and is in the display list
applicationComplete
All components are initialised and displayed.