Skip navigation
Currently Being Moderated

How to make substring as bold in a string ?

Dec 31, 2010 2:47 AM

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..

 
Replies
  • Currently Being Moderated
    Dec 31, 2010 4:18 AM   in reply to flex4

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points