Reputation: 46405
Folks,
I didn't get the difference between those two event.
What is the difference between them ?
Explanation with e.g will always be appreciated.
Thanks.
Upvotes: 4
Views: 9425
Reputation: 11
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
Upvotes: 1
Reputation: 1664
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.
Upvotes: 10
Reputation: 8875
Another important difference is your application doesn't have a reference to the stage until the applicationComplete is dispatched
Upvotes: 0
Reputation: 14221
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.
Upvotes: 2