Flex Automation of Composite Component
Just posting a quick code snippet for anyone banging their head against the wall trying to setup Flex automation testing on a composite component. Adobe's documentation for automation-enabling composite components assumes a fixed set of items, using a simple switch statement to return the known object.
But what if you have a dynamic composite object, such as a Panel that lets you dynamically add Buttons to the ...

