title: How to add event listeners to an array of objects
body: <p>I have an array of objects (specifically <code>easelJS</code> images) - something like this:</p>
  
  <pre><code>var imageArray = new Array;
  gShape  = new createjs.Shape();
  // shape is something
  imageArray.push(gShape);
  </code></pre>
  
  <p>What I want to do is have an event listener instead of:</p>
  
  <pre><code>gShape.addEventListener("click", function() {alert"stuff"});
  </code></pre>
  
  <p>I want the program to know specifically which region is clicked so that I can send an alert box in the following way:</p>
  
  <pre><code>imageArray[index].addEventListener("click", function(){
      alert " you clicked region number " + index}
  </code></pre>