title: Is there a way to pass 'self' or 'this' when calling a function inline in Flex for current component?
body: <p>I hope I have worded the question ok.</p>
  
  <p>I know that you can pass the 'id' of the component but I'm just wondering if there is a more generic way.  I have tried using 'this' (shown in example below) but the 'this' keyword refers to the application.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;mx:Button click="someFunc(this)"/&gt;
  </code></pre>
  
  <p>And the following function call doesn't work (as it's the wrong type):</p>
  
  <pre><code>someFunc(comp : UIComponent) : void {
      comp.label = 'Change label';
  }
  </code></pre>
  
  <p>If I have 20 components I'd like to be able to call the same function without using 'id' for the different components.</p>
  
  <p>Is there a way?</p>