0 Replies Latest reply on Jan 18, 2012 6:47 AM by sunsilk10

    Add Html link on form

    sunsilk10 Level 1

      Hi I  am using Flex SDK4.1. I would like to add couple of links on a form as follows:

       

       

      var descriptionText:Text = new Text();  

      descriptionText.htmlText = "<a href='http://www.testrav.htm'>TestLink1'</a><br \>";

      descriptionText.selectable = true;

      vg.addElement(descriptionText);

       

       

      descriptionText.htmlText = "<a href='http://www.testrav.htm'>TestLink2'</a><br \>";

      descriptionText.selectable = true;

      vg.addElement(descriptionText);

       

       

      In my form I have:

      <s:VGroup id="vg"/>

       

       

      The 2 links appear correctly on the form, hovering over it changes the cursor to a hand. However clicking on the link does nothing..

       

       

      Can anyone please please point out where I am going wrong with the code above!!!!!!

       

       

       

      Thanks