Here is the carousel component that goes along with 'Creating New Flex Components' (RA208W), my Max 2007 presentation. This is a sample component designed to show how the major component lifecycle methods work and interact. This version makes some bad assumptions: the scale of all included items will be 100% and that items will not be added dynamically, to name a couple. If this were a production level component some additional work should be done to address these issues.
Further, a lot of the logic that determines the movement and positioning of items should really be factored out into a different class.I believe that using a strategy pattern in a lot of these cases would lead to better components and more maintainable code. However, this code is about the lifecycle methods and isn't intended to be a reference on component implementation best practices.
That said, I replaced some of the more boring images from my talk with images from www.chicagopictures.net (special thanks to Don Brown for permission to use these images). As the balance of you never made it outside of the conference facility, I thought you might like to see what was beyond the giant walls of McCormick place. Check out the online version (source included) or download the code samples attached to this post.
Coming up in the next few days: The next posts on ObjectProxy and an introduction to the revised unit testing framework we have been diligently tackling.
Labriola