이벤트 생성 순서

컴포넌트의 이벤트 생성 주기

어플리케이션 구조가 아래와 같다면 preinitialize,initialize,creationComplete 이벤트 순서를 알아보자…

<mx:Application>    ———- 1

    <comp:SubChild1> ——– 2

        <comp:SubChild1-1/> ——– 3

    </comp:SubChild1>

    <comp:SubChild2>  ——— 4

    </comp:SubChild2>

</mx:Application>

이벤트 생성 순서 : preinitialize->initialize->creationComplete

어플리케이션 자식 이벤트 생성 순서

    – preinitialize : 1 -> 2 -> 4 -> 3

    - initialize : 3 -> 4 -> 2 -> 1

    – creationComplete : 3 -> 4 -> 2 -> 1

댓글 남기기