1 Reply Latest reply on Sep 9, 2010 2:38 PM by Ned Murphy

    clear previous links in a text field?

    Ron Colmen Level 2

      I'm loading data in to textbox1 and on click I load more data in to textbox1 by replacing the existing data. Every time I load data there are hyperlinks in the text. Now I need to clear all the hyperlinks that was there when I click my next button to load more data. How can I clear all the links within the textbox when I click a button?

       

      e,g,

      //1st load

      for(var i:Number=0; i<messageA.length; i++){

                 var msgA:Array = messageA[i].split(",,");

                 distlocator.htmlText +="<FONT FACE='Arial'>"+msgA[0]+"<br>"+msgA[1]+"<br>"+msgA[2]+"<br><a href='mailto:"+msgA[3]+"'>"+msgA[3]+"<\a><br>";

       

      //2nd load

       

      for(var i:Number=0; i<messageA.length; i++){

                 var msgA:Array = messageA[i].split(",,");

                 distlocator.htmlText +="<FONT FACE='Arial'>"+msgA[0]+"<br>"+msgA[1]+"<br>"+msgA[2]+"<br><a href='mailto:"+msgA[3]+"'>"+msgA[3]+"<\a><br>";