This content has been marked as final. Show 7 replies
Any input is appricated. :)
Any input at all?
It's common practice to retrieve elements from ArrayCollections using getItemAt (and setting them using setItemAt, looping using foreach, etc). I would probably be using an XMLListCollection rather than an ArrayCollection in your case though.
I thought the GetItemAt() doesn't work if the arrayCollection has only one item?!
It works just fine. For example:
private function acTest():void
var ac:ArrayCollection = new ArrayCollection();
ac.addItem(new Array("a", "b", "c"));
I got it. Thanks! Do you have any suggestion on how to check if the retrieved item is ArrayCollection or a single item that I mention on the 1st post?
One way around this issue is to use resultFormat="e4x" and XMLListCollection.
XMLList does not have the same isue with a single element that Array has.