title: FLEX:How to catch 'a href' event
body: <p>I'm loading data from TextFlow to spark:TextArea. In TextFlow i have 'a href' elements. Problem lies with the address of the 'link' elements. Some of them will go outside of the page (these i will leave without doing anything), other will go to other subpages in my site(these one i have to catch and process in code).</p>
  
  <p>I planned on catching 'clicking on link' event to decide what to do, but i can't do this. I read that by writing </p>
  
  <pre><code>&lt;a href="event:page_adress"&gt; 
  </code></pre>
  
  <p>i could catch the event on link:event in old mx:TextArea, but i cant do this here. I tried to manualy add:</p>
  
  <pre><code>addEventListener(TextEvent.Link, functionName)
  </code></pre>
  
  <p>but it doesnt work.
  When i change to catching MOUSE_CLICK event i'm catching the event, but cant parse it to get the needed address.</p>
  
  <p>Anybody have idea how to do it? I doesnt have to stick with TextArea, but component have to download content form TextFlow.</p>
  
  <p>PS I noticed that when i added event:page_adress to the 'a href' the link stopped working (that means it probably started throwing events), but i cant catch it...</p>
  
  <p>PS2 TextFlow is imported from external database with </p>
  
  <pre><code>TextFlowUtil.importFromXML
  </code></pre>
  
  <p>i tried using in link element, click event but it doesnt work:</p>
  
  <pre><code>&lt;a click="myClickHandler(event)"&gt;
  </code></pre>
  
  <p>myClickHandler doesnt run after clicking on link...</p>