title: Flex ArrayCollection getItemIndex always -1
body: <p>I have a question, why doesn't this work?</p>
  
  <p>I have an ArrayCollection with data; a trace of random index of this using</p>
  
  <pre><code>ObjUtil.toString(arrc.getItemAt(index))
  </code></pre>
  
  <p>gives me</p>
  
  <pre>
  (Object)#0  
    label = "VALUE"  
    value = 20  
  </pre>
  
  <p>I then create an object:</p>
  
  <pre><code>var newObj:Object = new Object()  
  newObj.label = "VALUE"  
  newObj.value = 20  
  </code></pre>
  
  <p>A trace of this gives:</p>
  
  <pre>
  (Object)#0  
    label = "VALUE"  
    value = 20  
  </pre>
  
  <p>Now I do:</p>
  
  <pre><code>arrc.getItemIndex(newObj)  
  </code></pre>
  
  <p>and it always gives me -1.</p>
  
  <p>Does anyone know where I'm going wrong?</p>