Superscripts, Subscripts, and Dynamic Textfields
Up until recently, I firmly believed that there was no easy way to make dynamic text have superscripted or subscripted characters. That is until I cracked open another developer’s flash files and noticed something that I’ve never seen before. He/she has embedded superscript fonts in the library, and used this font anytime the code encounters a <sup></sup> tag in the htmlText that was being loaded through XML. So I did a bit of google-ing and found a few helpful links, it seems that it’s the best (and easiest) way to deal with this problem. Check it out:
http://www.psyked.co.uk/adobe/flash/superscript-and-subscript-with-actionscript.htm
http://blog.ggshow.com/index.php/reference/2007/04/19/how_to_use_subscript_aamp_superscript_in
Pretty neat, eh?
-Carlo