Monday, March 19, 2012

Copying from one array collection to another without keeping reference

private var List:ArrayCollection = new ArrayCollection;
private var duplicateList:ArrayCollection = new ArrayCollection;

// to get the data for the first Array Collection
eventList = eventStore.getData();

// copy it to the other Array Collection
for(var z:int =0;z{
if(List.getItemAt(z).view == 1)
duplicateList.addItem(List.getItemAt(z));
}

No comments:

Post a Comment