1 Reply Latest reply on Jul 20, 2009 3:53 AM by Madhav Subedi

    Specifying Link Color in htmlText

    mfsiddiq

      Hi

       

          This may be quite a simple task for most of the guys but i am having some problems to get it right.I have a text String which is having hyperlink(href).I want the hyperlink to be in blue while rest of the text is black.I used the following code.

       

       

      var str:String="test for"+

      "<a href='http://xyz.com' target='_blank'><u><font color='Blue'>Click here></a>"

       

      <mx:Text

       

       

      id="sampleText" htmlText="{str}" selectable="true" condenseWhite="true"/>

       

      The link works fine but the link is still black in color.Am i doing anything wrong.

       

      Regards

      Sidd