I would like to be able to create the icon for folders or leefs at runtime based on some information that I am getting from the server. I can not figure out a way to use the iconFunction available on the Tree class for this purpose.
Please let me know if it's possible.
Thx-Claude
public function myIconFunction(item:Object):Class {
var pathIcon:String= item.pathIcon;
var iconClass:Class =??????????? (pathIcon) ?????????
return iconClass;
}
<mx:Tree id="myTree" iconFunction="myIconFunction" >

