我有一個ArrayCollection我們會打電話給「物品」。它基本上是一個分層數據的平面集合(每個項目具有Parent和Children屬性)。我想要一個AdvancedDataGrid顯示在分層形式的數據,所以基本上我可以做到這一點,它會顯示效果細膩: // Note: RootItems would be an ArrayCollection that is updated so only
不幸的是,在ActionScript中,似乎對Vector類的支持還沒有完全實現。有一些場景需要將Vector轉換爲數組(例如創建ArrayCollection)。我以爲這會做的伎倆: var myVector:Vector.<MyType> = new Vector.<MyType>();
var newArray:Array = new Array(myVector);
顯然,這只是創