Hi,

I have a data structure which looks a little like this:

items:ArrayCollection  is an array of objects with class Item:

Item:
name:String
category:String
data:ArrayCollection  is an array of objects with class Detail:

Detail:
name:String
type:String  //either "income" or "detail"
val:Object

So, I would like to create a tree with dataProvider="{items}" that
looks like:
-Item[name]
  >Detail[name]
  >Detail[name]
  >Detail[name]
-Item[name]
  >Detail[name]
  >Detail[name]

Now, if the data was in XML or just a basic ArrayCollection, this
would be straightforward, but not sure how to accomplish it with my
custom classes?

Sorry about the simple question, quite new to Flex!

Thanks for your help,

F

Reply via email to