[flexcoders] Re: Tree Custom Image Renderer

2006-10-06 Thread davcavs
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

[flexcoders] Re: Tree Custom Image Renderer

2006-10-06 Thread wayneposner
Take a look at the zip file at the following URL: http://macmartine.com/blog/flexsource/2.0/beta2/2006_04_04/ It's got a custom tree item renderer to display images instead of folders. You will have to port some if it to AS3 though. Wayne --- In flexcoders@yahoogroups.com, aerospc04 [EMAIL

[flexcoders] Re: Tree Custom Image Renderer

2006-10-06 Thread aerospc04
Thanks for the posts, I modified the script at the given link, here's the [working] results... Note that the rowHeight property of the Tree also needed to be set to a larger value (60 in this case). package MyTreeRenderer { import mx.controls.treeClasses.TreeItemRenderer;