ok.. I noticed these discrepencies long ago and it never bothered me.. now I have a project that relies on the affected features and I thought I’d mention the little problems here… maybe there’s a workaround??
I can dynamically underline text through ActionScript at will, but there’s no way to underline it through the Flash MX04 IDE? So I thought I’d be sneaky and write a quick JSAPI tool to allow me to underline text in the IDE.. and guess what? No underline property for text there! So I can use the textFormat .underline property in ActionScript, but there’s no way to underline in the IDE?? huh?
Another thing.. I can subscript and superscript text through the IDE, but the HTML tags <sub> and <sup> aren’t supported.. and theres not a .superscript or .subscript property for setting that textformat property via ActionScript ?? and from what I can tell there’s no way to use CSS to format text in Flash as subscript or superscript?
02 May 2008 at 12:35 am | #
Yes, <sub> & <sup> tags are not supported by Flash but you can
use Subscript & Superscript in dynamic and input text field in Flash:
Download & install Subscript & Superscript fonts from http://www.subscriptfont.com
You will need to restart Flash software after installed fonts.
Create a dynamic text field with Arial font embeded. Set the HTML property to true.
Create a dynamic text field with Subscript font embeded.
Create a dynamic text field with Superscript font embeded.
Use HTML tag to set text to subscript or superscript like below:
Some text<font face="Superscript">©</font>
If you are using ActionScript to test the htmlText, use script like below:
my_txt.htmlText = "Some text<font face='Superscript'>TM</font>";