Understanding the Flex Component Lifecycle
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.









February 17th, 2009
Understanding the Flex Component Lifecycle http://is.gd/jSM8
February 18th, 2009
understanding the flex component lifecycle http://is.gd/jSM8 #Flex
February 19th, 2009
Found this blog today. Nice bit about FLEX http://tinyurl.com/ddjvs4
February 20th, 2009
Understand Flex component lifecycle http://bit.ly/L8jn9 – a nice complement to more detailed reading you might have done
February 23rd, 2009
Mrinal,
Do we have a podcast of the presentation by Chetan Sachdev ?
February 24th, 2009
Hi Vengu,
Unfortunately we do not have any kind of recording of Chetan’s presentation
Mrinal
March 12th, 2009
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,
March 13th, 2009
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.
May 7th, 2009
People at @effectiveui are so kick ass, I can watch their presentation on component lifecycle over and over http://is.gd/jSM8 (via @fabianv)
May 26th, 2009
[...] 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 [...]
June 22nd, 2009
[...] 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 [...]
June 22nd, 2009
Understanding the Flex Component Lifecycle http://bit.ly/oEnNk
September 24th, 2009
[...] Flex component lifecycle is an area that I really want to explore in greater depth. I used to have it memorized however that [...]