# AS3.0: ArrayCollection.contains (& match)

**URL:** <https://forum.kirupa.com/t/as3-0-arraycollection-contains-match/203759>\
**Category:** flash\
**Created:** [October 13, 2006, 7:40pm UTC](https://forum.kirupa.com/t/as3-0-arraycollection-contains-match/203759 "2006-10-13T19:40:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwopitz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jwopitz/32/1556_2.png) [@jwopitz](https://forum.kirupa.com/u/jwopitz)\
**Post date:** [October 13, 2006, 7:40pm UTC](https://forum.kirupa.com/t/as3-0-arraycollection-contains-match/203759/1 "2006-10-13T19:40:44Z")

</div>

does anyone know of or has useful suggestion about some sort of ArrayCollection.containsMatch method? Basically I am looking to do the following:[LIST=1]  
[_]have an existing populated collection (collectionA)  
[_]have a collection with various items to be compared to (collectionB)  
[_]compare items in collectionB to those in collectionA  
[_]the items to be compared would normally return false using collectionA.contains () since they are more like references rather than copies of the items  
[\*]if there are matches, then return the matching values from collectionA[/LIST]I know how to do this programmatically however I am wondering if there is some built in class in AS3.0 that contains this functionality. Also I’d be interested in hearing how people would go about this programmatically (so I can see if there is a better way).
