2. Specifying Tree control icons The Tree control provides four techniques for specifying node icons: The folderOpenIcon, folderClosedIcon, and defaultLeafIcon properties Data provider node icon fields The set Item Icon() method The iconFunction property Using icon properties: You can use the folderOpenIcon, folderClosedIcon, and default Leaf Icon properties to control the Tree control icons.
3. Using icon fields Example: <?xml version="1.0"?> <!-- dpcontrols/TreeIconField.mxml --> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ [Bindable] [Embed(source="assets/images.jpg")] public var iconSymbol1:Class; [Bindable] [Embed(source="assets/images1.jpg")] public var iconSymbol2:Class; ]]> </mx:Script>