How do you add html text by actionscript in flash? (I'm using flash 8)
By the way, how do you remove a character from a string (it's the last character I want to remove)?
enable the html property of your textfield and asign htmlText:
yourTF.htmlText="<b>this is bold</b> and <i>this is italic</i>";
Thanks! It worked well for bold but not superscript. Why?
there are a very limited number of html tags that as2 can parse. if you use google to search (flash as2 supported html tags), you'll find those supported tags.
for sub/superscripts in as2 you have to use custom fonts.