title: finding sequences in AS3 array
body: <p>does anyone have any idea what to do in order to find the number of sequences in an array?</p>
  
  <p>for example, my array is:</p>
  
  <pre><code>var numbers:Array = new Array(banana, banana, apple, banana, banana);
  </code></pre>
  
  <p>and i need to find is:
  * how many times there is a sequence of "banana"
  * and the length of each sequence.</p>
  
  <p>what shell i do in order to get the following result:
  2,1,2 (2 bananas, 1 apple, 2 bananas)</p>
  
  <p>i tried with do while loop, but i i guess i miss something.</p>
  
  <p>a short example will be very appreciated!</p>
  
  <p>thanx</p>