SlideShare a Scribd company logo
1 of 32
Download to read offline
Flex4
                                        JexChan @gmail.com
                                     http://www.jexchen.com
                                                 2010.12.02




Thursday, December 2, 2010
组           开发

                   Contents
                                  Spark


                                      Flex4


                                  Demo


                                  Q&A



Thursday, December 2, 2010
组           开发

                             Demo




                                    Demo ~~




Thursday, December 2, 2010
组           开发

               Spark




                                  MX/Halo      Spark
                                       Flex3        Flex4




Thursday, December 2, 2010
组           开发

               Spark




                                  M   V   C




Thursday, December 2, 2010
组           开发

               Spark

                                              MXHalo architecture




                                  M       V
                                                                     V
                                      C


Thursday, December 2, 2010
组           开发

                             Demo




                                    Demo ~~




Thursday, December 2, 2010
组           开发

               Spark

                                          Spark architecture




                                  M   C
                                                               V



Thursday, December 2, 2010
组           开发

                             Demo




                                    Demo ~~




Thursday, December 2, 2010
组           开发

               Spark



                                  Data


                                  Parts


                                  States




Thursday, December 2, 2010
组           开发

               Spark




                                  Extended From ?




Thursday, December 2, 2010
组           开发

               Spark




                                  http://www.dehats.com/drupal/?q=node/96
Thursday, December 2, 2010
组           开发

               Spark




                                  Why Flex Component Lifecycle ?




Thursday, December 2, 2010
组           开发

               Spark




                                  Lifecycle ?




Thursday, December 2, 2010
组           开发




                                  http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/
Thursday, December 2, 2010
组           开发




                                  http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/
Thursday, December 2, 2010
组           开发




                                  http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/
Thursday, December 2, 2010
组           开发




                                  What means ?




Thursday, December 2, 2010
组           开发




                                  Render
                                  SWF      Marshals




Thursday, December 2, 2010
组           开发

                    LifeCycle




                                  Birth   Life   Death




Thursday, December 2, 2010
组           开发

                    LifeCycle
                                  BRITH
                                          preinitialize




                                          initial




                                  LIFE
                                          createCompmlete




                                  DEATH


Thursday, December 2, 2010
组            开发
                                    ⁃
                    LifeCycle       ⁃

                                    ⁃

                                    ⁃



                             LIFE




Thursday, December 2, 2010
组           开发

                    LifeCycle     // Create a Group container.
                                  var groupContainer:Group = new Group();
                                  // Configure the Group container.
                                  groupContainer.x = 10;
                                  groupContainer.y = 10;

                                  // Create a Button control.
                                  var b:Button = new Button()
                                  // Configure the button control.
                                  b.label = "Submit";
                                  ...
                                  // Add the Button control to the Box
                                  container.
                                  groupContainer.addElement(b);




Thursday, December 2, 2010
组           开发

                    LifeCycle
                                  // Create a Button control.
                                  var b:Button = new Button()




        BRITH                     Constructor




Thursday, December 2, 2010
组           开发

                    LifeCycle
                                  // Configure the button control.
                                  b.label = "Submit";




             BRITH

                                  invalidateProperties(),
                                  invalidateSize(),
                                  invalidateSkinState(),
                                     invalidateDisplayList()



Thursday, December 2, 2010
组           开发

                    LifeCycle
                                      // Add the Button control to the
                                      Box container.
                                      gropContainer.addElement(b);




                  BRITH
                                  preinitialize




                                  initial




                                       http://help.adobe.com/en_US/flex/using/WS460ee381960520ad-2811830c121e9107ecb-7fff.html
Thursday, December 2, 2010
组           开发

                    LifeCycle


                                       override




                                  Lifecycle       Elastic Racetrack




Thursday, December 2, 2010
组           开发

                    LifeCycle




Thursday, December 2, 2010
组           开发
                                  Container   Component
                    LifeCycle




Thursday, December 2, 2010
组           开发

                    LifeCycle




                                  SDK   ~~




Thursday, December 2, 2010
Link


                                    A brief overview of the Spark architecture and component set
                                    http://www.adobe.com/devnet/flex/articles/flex4_sparkintro.html



                                    Flex 4 Component Lifecycle
                                    http://weblog.mrinalwadhwa.com/2009/06/21/flex-4-component-lifecycle/


                                    Elastic RaceTrack
                                    http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/


                                    Using Flex4 - Custom components
                                    http://help.adobe.com/en_US/flex/using/WS4bebcd66a74275c35bf45738120d4f86190-8000.html




Thursday, December 2, 2010
〜~〜~
                             http://www.riameeting.com/




Thursday, December 2, 2010

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

精讲Flex4自定义组件开发

  • 1. Flex4 JexChan @gmail.com http://www.jexchen.com 2010.12.02 Thursday, December 2, 2010
  • 2. 开发 Contents Spark Flex4 Demo Q&A Thursday, December 2, 2010
  • 3. 开发 Demo Demo ~~ Thursday, December 2, 2010
  • 4. 开发 Spark MX/Halo Spark Flex3 Flex4 Thursday, December 2, 2010
  • 5. 开发 Spark M V C Thursday, December 2, 2010
  • 6. 开发 Spark MXHalo architecture M V V C Thursday, December 2, 2010
  • 7. 开发 Demo Demo ~~ Thursday, December 2, 2010
  • 8. 开发 Spark Spark architecture M C V Thursday, December 2, 2010
  • 9. 开发 Demo Demo ~~ Thursday, December 2, 2010
  • 10. 开发 Spark Data Parts States Thursday, December 2, 2010
  • 11. 开发 Spark Extended From ? Thursday, December 2, 2010
  • 12. 开发 Spark http://www.dehats.com/drupal/?q=node/96 Thursday, December 2, 2010
  • 13. 开发 Spark Why Flex Component Lifecycle ? Thursday, December 2, 2010
  • 14. 开发 Spark Lifecycle ? Thursday, December 2, 2010
  • 15. 开发 http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/ Thursday, December 2, 2010
  • 16. 开发 http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/ Thursday, December 2, 2010
  • 17. 开发 http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/ Thursday, December 2, 2010
  • 18. 开发 What means ? Thursday, December 2, 2010
  • 19. 开发 Render SWF Marshals Thursday, December 2, 2010
  • 20. 开发 LifeCycle Birth Life Death Thursday, December 2, 2010
  • 21. 开发 LifeCycle BRITH preinitialize initial LIFE createCompmlete DEATH Thursday, December 2, 2010
  • 22. 开发 ⁃ LifeCycle ⁃ ⁃ ⁃ LIFE Thursday, December 2, 2010
  • 23. 开发 LifeCycle // Create a Group container. var groupContainer:Group = new Group(); // Configure the Group container. groupContainer.x = 10; groupContainer.y = 10; // Create a Button control. var b:Button = new Button() // Configure the button control. b.label = "Submit"; ... // Add the Button control to the Box container. groupContainer.addElement(b); Thursday, December 2, 2010
  • 24. 开发 LifeCycle // Create a Button control. var b:Button = new Button() BRITH Constructor Thursday, December 2, 2010
  • 25. 开发 LifeCycle // Configure the button control. b.label = "Submit"; BRITH invalidateProperties(), invalidateSize(), invalidateSkinState(), invalidateDisplayList() Thursday, December 2, 2010
  • 26. 开发 LifeCycle // Add the Button control to the Box container. gropContainer.addElement(b); BRITH preinitialize initial http://help.adobe.com/en_US/flex/using/WS460ee381960520ad-2811830c121e9107ecb-7fff.html Thursday, December 2, 2010
  • 27. 开发 LifeCycle override Lifecycle Elastic Racetrack Thursday, December 2, 2010
  • 28. 开发 LifeCycle Thursday, December 2, 2010
  • 29. 开发 Container Component LifeCycle Thursday, December 2, 2010
  • 30. 开发 LifeCycle SDK ~~ Thursday, December 2, 2010
  • 31. Link A brief overview of the Spark architecture and component set http://www.adobe.com/devnet/flex/articles/flex4_sparkintro.html Flex 4 Component Lifecycle http://weblog.mrinalwadhwa.com/2009/06/21/flex-4-component-lifecycle/ Elastic RaceTrack http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-flash-9-and-avm2/ Using Flex4 - Custom components http://help.adobe.com/en_US/flex/using/WS4bebcd66a74275c35bf45738120d4f86190-8000.html Thursday, December 2, 2010
  • 32. 〜~〜~ http://www.riameeting.com/ Thursday, December 2, 2010