Add icon fields to Tree
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> [Bindable] [Embed(source="logo.jpg")] public var iconSymbol1:Class; [Bindable] [Embed(source="logo.jpg")] public var iconSymbol2:Class; </mx:Script> <mx:Tree iconField="@icon" labelField="@label" showRoot="false" width="160"> <mx:XMLList> <node label="New"> <node label="HTML Document" icon="iconSymbol2" /> <node label="Text Document" icon="iconSymbol2" /> </node> <node label="Close" icon="iconSymbol1" /> </mx:XMLList> </mx:Tree> </mx:Application>