My recommendation is to borrow code from DataGridBase
On 2/13/10 5:21 PM, "Mike" <msl...@mslinn.com> wrote: Because this is an library for exporting to other formats I only need to instantiate one renderer at a time. Memory requirements should therefore be modest. I have implemented a mechanism to export the display lists of non-text item renderers. The tricky part is learning how to instantiate any type of renderer on demand. Hopefully constructive suggestions will be forthcoming soon. Mike --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , Alex Harui <aha...@...> wrote: > > Except the memory implications of rendering every row must be considered. > > And I still haven't figured out what you'd do for renderers that don't > display any text. > > And I'm pretty sure I could write a renderer that you could never figure out > which children have text. > > But given all that, then start copying code from DataGridBase.as. > CreateColumnItemRenderer, setupItemRenderer and some calls to validateNow > should get the renderer in its "final state", and code in FocusManager, > addFocusables walks children in the two known ways of figuring out your > children. If you run into TextFields, pull their text or htmlText and if you > run into TextLines.... Not sure what you'll do there. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui