SNOWFLAKES DRAWING PAPER

[FLEX] Flex Application 시작시 발생 이벤트 순서 본문

개발/FLEX/AS3/AIR/BlazeDS

[FLEX] Flex Application 시작시 발생 이벤트 순서

눈송2 2008. 10. 19. 09:07

http://cafe.naver.com/flexcomponent/11293


The events in more detail:
- preinitialize()is dispatched when the component has been attached to its parentcontainer, but before the component has been initialized, or any of itschildren have been created. In most cases, this event is dispatched tooearly for an application to use to configure a component.


- initialize() is dispatched whena component has finished its construction and its initializationproperties have been set. At this point, all of the component’simmediate children have been created (they have at least dispatchedtheir preinitialize() event), but they have not been laid out. Exactlywhen initialize events are dispatched depends on the container’screation policy, as described later in this section.


- creationComplete() isdispatched when the component, and all of its child components, and allof their children, and so on have been created, laid out, and arevisible.


- updateComplete() is dispatched every time the container or component characteristics are changed.


- applicationComplete()dispatches events after the Application has been initialized, processedby the LayoutManager and added to the display list. This is the lastevent dispatched during an application startup. It is later than theapplication’s creationComplete() event, which gets dispatched beforethe preloader has been removed and the application has been attached tothe display list.


Comments