Why does Flex's ArrayCollection's Contain method look at memory reference?
When using .contains() on an ArrayCollection in Flex, it will always look at the memory reference. It does not appear to look at an .equals() method or .toString() method or anything overridable. Instead, I need to loop through the ArrayCollection every time and check each individual item until I find what I'm looking for. Does anyone know why Flex/ActionScript was made this way? Why not provide a way from people to use the contains() method the way they want? Couldn't you just extend ArrayCollection and override the contains() method? Alternatively you can paste the source for ArrayCollection