SlideShare a Scribd company logo
Flex 组件生命周期
Flash Release Model
Users
Flash Player
insdeco.swf
Flex & AS3
RenderingCode Execution
1Frame
Heavy RenderingHeavy Code Execution
Elastic Racetrack
Actionscript Virtural Machine 2 Slice
Render ActionInvalidate ActionUser Action
Player Events
User Code
Prerender Event
User Code
Player Render
20 ms / slice
Flash Frames Synthesized From AVM2 Slices
50fps
25fps
5fps
1Frame(20ms)
1Frame(40ms)
1Frame(200ms)
死亡成熟萌芽
Construction
Additon
var btn:MyButton = new MyButton();
this.addChild(btn);
addingChild()
$addChild()
childAdded()
Initialization
dispatch PREINITIALIZE event
createChildren()
childrenCreated()
initializeAccessiblility()
initializeComplete()
dispatch INITIALIZE event
createChildren()
partAdded()
findSkinParts()
attachSkin()
validateSkinChange()
SkinComponent
数据
逻辑
动画状态
布局可视组件
Initialization
dispatch PREINITIALIZE event
createChildren()
childrenCreated()
initializeAccessiblility()
initializeComplete()
dispatch INITIALIZE event
Invalidation
Validation
Update
invalidateProperties()
invalidateSize()
invalidateDisplayList()
commitProperties()
measure()
updateDisplay()
Invalidation Validation
Component
invalidateProperties()
commitProperties()
validateProperties()
LayoutManager
validateProperties()
invalidateProperties()
invalidatePropertiesQueue
updateCompleteQueue
Invalidation
Validation
Update
invalidateProperties()
invalidateSize()
invalidateDisplayList()
commitProperties()
measure()
updateDisplay()
Removel
GC
this.removeChild(btn);
The End

More Related Content

Viewers also liked

Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)
Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)
Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)
Fikri Arif Wicaksana
 
My Work - Shutter Speed - Movement
My Work - Shutter Speed - MovementMy Work - Shutter Speed - Movement
My Work - Shutter Speed - Movementbrentwoodsid
 
Photographer - Darren Almond
Photographer - Darren AlmondPhotographer - Darren Almond
Photographer - Darren Almondbrentwoodsid
 
LA CONCILIACIÓN FAMILIAR
LA CONCILIACIÓN FAMILIARLA CONCILIACIÓN FAMILIAR
LA CONCILIACIÓN FAMILIAR
Nery Perez
 
ÉTICA APLICADA A LA CONCILIACIÓN
ÉTICA APLICADA A LA CONCILIACIÓNÉTICA APLICADA A LA CONCILIACIÓN
ÉTICA APLICADA A LA CONCILIACIÓN
Nery Perez
 
Photoshop Skill - How to Use Layers
Photoshop Skill - How to Use LayersPhotoshop Skill - How to Use Layers
Photoshop Skill - How to Use Layersbrentwoodsid
 
Photographer - Man Ray
Photographer - Man RayPhotographer - Man Ray
Photographer - Man Raybrentwoodsid
 

Viewers also liked (10)

Door 2
Door 2Door 2
Door 2
 
Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)
Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)
Konfigurasi AP (Fikri Arif Wicaksana & Bahrul Alam)
 
My Work - Shutter Speed - Movement
My Work - Shutter Speed - MovementMy Work - Shutter Speed - Movement
My Work - Shutter Speed - Movement
 
Photographer - Darren Almond
Photographer - Darren AlmondPhotographer - Darren Almond
Photographer - Darren Almond
 
LA CONCILIACIÓN FAMILIAR
LA CONCILIACIÓN FAMILIARLA CONCILIACIÓN FAMILIAR
LA CONCILIACIÓN FAMILIAR
 
ÉTICA APLICADA A LA CONCILIACIÓN
ÉTICA APLICADA A LA CONCILIACIÓNÉTICA APLICADA A LA CONCILIACIÓN
ÉTICA APLICADA A LA CONCILIACIÓN
 
My Work - Objects
My Work - ObjectsMy Work - Objects
My Work - Objects
 
Dooradarsan
DooradarsanDooradarsan
Dooradarsan
 
Photoshop Skill - How to Use Layers
Photoshop Skill - How to Use LayersPhotoshop Skill - How to Use Layers
Photoshop Skill - How to Use Layers
 
Photographer - Man Ray
Photographer - Man RayPhotographer - Man Ray
Photographer - Man Ray
 

Similar to Flex component lifecycle

Flex Custom Component Lifecycle Practice
Flex Custom Component Lifecycle PracticeFlex Custom Component Lifecycle Practice
Flex Custom Component Lifecycle Practicejexchan
 
Building Components In Flex3
Building Components In Flex3Building Components In Flex3
Building Components In Flex3
Tikal Knowledge
 
Oxygine 2 d objects,events,debug and resources
Oxygine 2 d objects,events,debug and resourcesOxygine 2 d objects,events,debug and resources
Oxygine 2 d objects,events,debug and resources
corehard_by
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
Jamie (Taka) Wang
 
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QAFest
 
JavaFX GUI architecture with Clojure core.async
JavaFX GUI architecture with Clojure core.asyncJavaFX GUI architecture with Clojure core.async
JavaFX GUI architecture with Clojure core.async
Falko Riemenschneider
 
Invalidation Routines Pounded Into Your Cranium
Invalidation Routines Pounded Into Your CraniumInvalidation Routines Pounded Into Your Cranium
Invalidation Routines Pounded Into Your Cranium
sakrirosenstrom
 
Orchid Programming
Orchid ProgrammingOrchid Programming
Orchid Programmingrayhsu
 
วิธีการสร้างผลงาน Animation
วิธีการสร้างผลงาน Animationวิธีการสร้างผลงาน Animation
วิธีการสร้างผลงาน AnimationSutthathip Jane
 
Building an HTML5 Video Player
Building an HTML5 Video PlayerBuilding an HTML5 Video Player
Building an HTML5 Video Player
Jim Jeffers
 
Asynchronous Programming with JavaScript
Asynchronous Programming with JavaScriptAsynchronous Programming with JavaScript
Asynchronous Programming with JavaScript
WebF
 
Flex4 component lifecycle
Flex4 component lifecycleFlex4 component lifecycle
Flex4 component lifecycleRJ Owen
 
Fear no fragments
Fear no fragmentsFear no fragments
Fear no fragments
Dipo Areoye
 
BlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM Europe
BlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM EuropeBlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM Europe
BlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM Europe
Mariano Carrizo
 

Similar to Flex component lifecycle (20)

Flex Custom Component Lifecycle Practice
Flex Custom Component Lifecycle PracticeFlex Custom Component Lifecycle Practice
Flex Custom Component Lifecycle Practice
 
Building Components In Flex3
Building Components In Flex3Building Components In Flex3
Building Components In Flex3
 
Oxygine 2 d objects,events,debug and resources
Oxygine 2 d objects,events,debug and resourcesOxygine 2 d objects,events,debug and resources
Oxygine 2 d objects,events,debug and resources
 
20230202 - Introduction to tis-py
20230202 - Introduction to tis-py20230202 - Introduction to tis-py
20230202 - Introduction to tis-py
 
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
QA Fest 2019. Алексей Альтер-Песоцкий. Snapshot testing with native mobile fr...
 
JavaFX GUI architecture with Clojure core.async
JavaFX GUI architecture with Clojure core.asyncJavaFX GUI architecture with Clojure core.async
JavaFX GUI architecture with Clojure core.async
 
Invalidation Routines Pounded Into Your Cranium
Invalidation Routines Pounded Into Your CraniumInvalidation Routines Pounded Into Your Cranium
Invalidation Routines Pounded Into Your Cranium
 
provarealw4
provarealw4provarealw4
provarealw4
 
as3
as3as3
as3
 
provalast2
provalast2provalast2
provalast2
 
test
testtest
test
 
Orchid Programming
Orchid ProgrammingOrchid Programming
Orchid Programming
 
วิธีการสร้างผลงาน Animation
วิธีการสร้างผลงาน Animationวิธีการสร้างผลงาน Animation
วิธีการสร้างผลงาน Animation
 
Les 4 ppt
Les 4 pptLes 4 ppt
Les 4 ppt
 
Les 4 ppt
Les 4 pptLes 4 ppt
Les 4 ppt
 
Building an HTML5 Video Player
Building an HTML5 Video PlayerBuilding an HTML5 Video Player
Building an HTML5 Video Player
 
Asynchronous Programming with JavaScript
Asynchronous Programming with JavaScriptAsynchronous Programming with JavaScript
Asynchronous Programming with JavaScript
 
Flex4 component lifecycle
Flex4 component lifecycleFlex4 component lifecycle
Flex4 component lifecycle
 
Fear no fragments
Fear no fragmentsFear no fragments
Fear no fragments
 
BlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM Europe
BlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM EuropeBlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM Europe
BlackBerry10 apps with Adobe AIR & Apache Flex - BlackBerry JAM Europe
 

Recently uploaded

Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
veerababupersonal22
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERSCW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
CW RADAR, FMCW RADAR, FMCW ALTIMETER, AND THEIR PARAMETERS
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 

Flex component lifecycle