Flex - Difference between creationComplete and ApplicationComplete event?
Folks,
I didn't get the difference between those two event.
What is the difference between them ?
Explanation w开发者_JS百科ith e.g will always be appreciated.Thanks.
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ee6.html
Each component dispatches a creationComplete message during application startup - if it is meant to be created at startup. Otherwise each component will dispatch the message whenever it is actually created.
From the documentation link above:
After all components are created and drawn, the Application object dispatches an applicationComplete event. This is the last event dispatched during an application startup.
*Edited to reflect other times when creationComplete events get dispatched, besides just the context of application startup.
See this link with the full explanation. In addition, creationComplete
is dispatched by every Flex component but applicationComplete
dispatched only one time by Application
itself.
Both the Creationcomplete and application complete is part of the flex application life cycle. For more information and examples you can go to the following link:
http://technobytz.com/flex-preinitialize.html
Another important difference is your application doesn't have a reference to the stage until the applicationComplete is dispatched
精彩评论