title: Search an array for a string and return the index in AS3
body: <p>I want to search an array to see if it contains a specific string, and then get the index of the result.</p>
  
  <p>For example, if I had:</p>
  
  <pre><code>array[0] = "dogs";
  array[1] = "cats";
  array[2] = "oranges";
  </code></pre>
  
  <p>I want to be able to search for "oran" and get 2 back. Any idea on how to do this?</p>