Flex分享:生命週期

組件生命週期包括三步:initialization, update, destruction.

過程方法見下表總結:

Life Cycle Procedure


initializationconstruction 


attachment(be added to the display list and it has a parent)


initializationdispatches the preinitialize event


createChildren()


dispatches the initialize event


goes throught a full invalidation & validation ( This step occurs both the here and during the update phase)commitProperites()



measure()



updateDisplayList()
updateWaiting for update request 


Update request


Invalidation


Validation





destruction Be removed from this display list 
no longer referenced anywhere 



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章