1 Reply Latest reply: Dec 31, 2010 4:18 AM by flex2008 RSS

    How to make substring as bold in a string ?

    flex4 Community Member

      HI

       

              I have a requirement where i need to make a substring as bold string in a main string. Can any one tell me how to achieve this functionality.. I want to make it in Action Script. Please it is urgent ..

       

       

      Thanks

      Ram..

        • 1. Re: How to make substring as bold in a string ?
          flex2008 Community Member

          For mx text component:Use lbl.htmlText = 'HELLO <b>WORLD</b> where lbl is the id of any mx text component

          For spark text component:Use lbl.htmlText = TextConverter.importToFlow('HELLO <b>WORLD</b>',TextConverter.TEXT_FIELD_HTML_FORMAT); where lbl is the id of any spark text component other than spark Label