Skip to content

Instantly share code, notes, and snippets.

@rjattrill
Created September 10, 2013 04:39
Show Gist options
  • Save rjattrill/6505057 to your computer and use it in GitHub Desktop.
Save rjattrill/6505057 to your computer and use it in GitHub Desktop.
Copy an ArrayCollection in Flex
// ArrayCollection variables are references, so to create a copy:
var copyAc:ArrayCollection = new ArrayCollection(sourceAc.toArray());
// or
var copyAc:ArrayCollection = ObjectUtil.copy(sourceAc) as ArrayCollection;
@rjattrill
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment