Understanding the Flex Component Lifecycle

February 17, 2009

UPDATE: I gave a talk on the Lifecycle of a Component in Flex 4 first at Bangalore Flex User Group and then at FlexMania conference, check out the video recording, slides and code.


Someone recently asked me how to go about understanding the Flex Component Lifecycle .. my usual answer to this is to go read the documentation, then the source of UIComponent and a few basic components like Label, Button etc. .. I also sometimes point people to the Building A Flex Component [PDF] presentation from Ely Greenfield which I’ve found useful in the past … this time though, I was also reminded of some recent presentations I had seen on the subject and found interesting .. so I thought I’ll share them here as well ..

Diving Deep With the Flex Component Lifecycle,
presented by Brad Umbaugh and RJ Owen at 360 | Flex, San Jose.

 
Creating New Components in Flex 3,
presented by Deapa Subramaniam at MAX 2008

Also, while we’re on the subject, if you’re in Bangalore you should consider attending this Friday’s Bangalore Flex User Group meeting where Chetan Sachdev will be presenting a talk on Custom Components and the Component Lifecycle.

Register here

13 Responses - What do you think?

  1. Understanding the Flex Component Lifecycle http://is.gd/jSM8

  2. understanding the flex component lifecycle http://is.gd/jSM8 #Flex

  3. Found this blog today. Nice bit about FLEX http://tinyurl.com/ddjvs4

  4. Understand Flex component lifecycle http://bit.ly/L8jn9 – a nice complement to more detailed reading you might have done

  5. Mrinal,

    Do we have a podcast of the presentation by Chetan Sachdev ?

  6. Hi Vengu,

    Unfortunately we do not have any kind of recording of Chetan’s presentation

    Mrinal

  7. Hey Mrinal,

    Nice work!!
    Its what I read somewhere that if an Object is set to null
    and if some eventlisteners are added to it, its not garbage collected.

    HIssam,

  8. Hi Hissam,

    EventListeners can hold weak and strong references to an object … checkout the useWeakReference parameter in the addEventListener method http://livedocs.adobe.com/flex/3/langref/index.html
    If an event listener holds a strong reference (which is the default behavior) an object will not get garbage collected unless the listener is removed.

  9. People at @effectiveui are so kick ass, I can watch their presentation on component lifecycle over and over http://is.gd/jSM8 (via @fabianv)

  10. [...] component lifecycle – great if you need to create your own components. I stumbled on this via Mrinal Wadhwa’s blog, which has some more goodies [...]

  11. [...] a Flex Component [PDF] (Thanks Ted Patrick for making it available on his blog) Presentation “Diving Deep With the Flex Component Lifecycle,” by Brad Umbaugh and RJ Owen White Paper by the guys at Development Arc on Component [...]

  12. Understanding the Flex Component Lifecycle http://bit.ly/oEnNk

  13. [...] Flex component lifecycle is an area that I really want to explore in greater depth. I used to have it memorized however that [...]

Your thoughts or questions: