Yes, use the iconFunction property, eg:
<mx:Tree id="myTree" iconFunction="getIcon" ...>
And an example skeleton code iconFunction:
public function getIcon( node ) : String
{
var someProperty = node.getProperty( "someProperty" );
return iconSymbols[ someProperty ];
}
In this example, the symbol name of the icon to use is returned, depending
on the someProperty value of the node. You might also be able to return a
url to a SWF or JPG - check the docs.
Ali
--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
Office: +44 (0)131 338 6108
Mobile: +44 (0)7976 987252
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
-----Original Message-----
From: iurdu ruf [mailto:[EMAIL PROTECTED]
Sent: 22 February 2005 11:52
To: [email protected]
Subject: [flexcoders] Different icons in a Tree?
Hello, im trying to make a tree with different icon folder in each level, is
possible to do that?
thanks.
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
Yahoo! Groups Links