<p>I'm new to Flex, although not new to programming. I want to write a generic event handler that will be called by all my textinput boxes when they receive focus.  When they have focus, I want to change the colour of the textinput box.  When they lose focus, I want to restore the "inactive" color profile. I could write an ActionScript event handler for each textinput box, but we all know that's lame.  :o)  What I need, then, is a way to access the object which is calling the event handler.</p>

<p>In Delphi, I'd have written a function which passes in the Sender object, allowing me to access the calling object's properties.  I'm guessing ActionScript/Flex has a completely different architecture, which is why I'm having difficulty doing this.</p>

<p>Thanks in anticipation!</p>

I hope I'm understanding what you're asking for... are you talking about event delegation?
This worked for me:
```
```
// 'focusOut' for blur
stage.addEventListener('focusIn', function(e:Event):void {
    // The focused control is e.target
});
```
```