狠狠撸

狠狠撸Share a Scribd company logo
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-?ash-9-and-avm2/
Thursday, December 2, 2010
组           开发




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




                                  http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-?ash-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/?ex/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/?ex/articles/?ex4_sparkintro.html



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


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


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




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




Thursday, December 2, 2010

More Related Content

精讲贵濒别虫4自定义组件开发

  • 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-?ash-9-and-avm2/ Thursday, December 2, 2010
  • 16. 开发 http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-?ash-9-and-avm2/ Thursday, December 2, 2010
  • 17. 开发 http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-?ash-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/?ex/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/?ex/articles/?ex4_sparkintro.html Flex 4 Component Lifecycle http://weblog.mrinalwadhwa.com/2009/06/21/?ex-4-component-lifecycle/ Elastic RaceTrack http://www.craftymind.com/2008/04/18/updated-elastic-racetrack-for-?ash-9-and-avm2/ Using Flex4 - Custom components http://help.adobe.com/en_US/?ex/using/WS4bebcd66a74275c35bf45738120d4f86190-8000.html Thursday, December 2, 2010
  • 32. ?~?~ http://www.riameeting.com/ Thursday, December 2, 2010