title: Actionscript 3.0 Determining Event Listener Sender?
body: <p>is it possible to determining what object calls a function based on an event listener?  for example, i have 2 buttons on stage that call the same function when they are clicked.  i'd like the function to determine which button was the sender.</p>
  
  <pre><code>firstButton.addEventListener(MouseEvent.CLICK, myFunction);
  secondButton.addEventListener(MouseEvent.CLICK, myFunction);
  
  function myFunction(e:MouseEvent):void
   {
   var myString:String = "The button that called this function was (??)";
   trace(myString);
   }
  </code></pre>