Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 with e.g will always be appreciated.

Thanks.

like image 626
Saurabh Gokhale Avatar asked Dec 12 '22 13:12

Saurabh Gokhale


2 Answers

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.

like image 179
Kevin Gallahan Avatar answered Jan 22 '23 22:01

Kevin Gallahan


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.

like image 34
Constantiner Avatar answered Jan 22 '23 22:01

Constantiner