Flex - Difference between creationComplete and ApplicationComplete event?

sgokhales picture sgokhales · May 16, 2011 · Viewed 9.3k times · Source

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.

Answer

Kevin Gallahan picture Kevin Gallahan · May 16, 2011

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.