实际上我的意图是将动态生成的ArrayCollections存储在ArrayCollection或Array中,或者使用任何其他方法。这可能吗?
答案 0 :(得分:1)
得到了答案。使用相同的对象存储方法并不困难。
这是我的示例arrayCollection
private var expenses:ArrayCollection = new ArrayCollection([
{Label:"Taxes", Value:1001},
{Label:"Rent", Value:1005},
{Label:"Bills", Value:1008},
{Label:"Car", Value:1009},
{Label:"Gas", Value:1020},
{Label:"Food", Value:1015},
{Label:"Taxes1", Value:1080},
{Label:"Rent1", Value:1200},
{Label:"Bills1", Value:100} ,
{Label:"Car1", Value:450},
{Label:"Gas1", Value:100},
{Label:"Food1", Value:1750},
{Label:"Taxes2", Value:1275},
{Label:"Rent2", Value:1650},
{Label:"Bills2", Value:1220},
{Label:"Car2", Value:1550},
{Label:"Gas2", Value:900},
{Label:"Food2", Value:850},
{Label:"g", Value:900},
{Label:"h", Value:850}
]);
这是我如何在另一个ArrayCollection里面存储的ArrayCollection
var arr:ArrayCollection=new ArrayCollection();
var obj:Object=new Object();
obj.value=expenses;
arr.addItem(obj);