Subclass TreeItemRenderer and override the commitProperties(), measure(), and updateDisplayList() methods to add your jpg instead of the default document/folder icon. Set your new class as the itemRenderer property of the Tree. See the TreeItemRenderer class and documentation for details.
-David --- In [email protected], "aerospc04" <[EMAIL PROTECTED]> wrote: > > Okay, I've not found a clean way to get this to work... I have a tree > who's "leafs" and "nodes" represent people. I'd like to display a > 100x100 jpeg headshot of each person instead of the folder/page > default icon that comes with flex. Does anyone know how to do this? > I've tried creating a custom component, but when I do I lose all > indenting and the branch open/close triangles. > > Thanks > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

