How to use Subscript & Superscript in dynamic and input text field in Flash?
Issue: <sub> & <sup> tags are not supported by Flash.Download Subscript & Superscript Fonts
View Full Version : dynamic text and superscript
cosio
03-04-2006, 10:13 PM
HI all,
I'm trying to get superscript for numbers to work using the unicodes of the font.
Anyone know of a hack to achieve this ?
I managed to get it to work with unicodes and if i create a dynamic textfield and within flash specify the characters i want to embed and then did this:
myText.html= "testing /u2074";
off the top of my head /u2074 will display 2 in superscript.
The font i'm using is palatino which has all the superscript codes for numbers 1-9.
The problem is i need to read the text from an external xml file. I've put the text i want in cdata so /u2074 will be read.
I'm reading the node with the cdata into myText.html and what it displays is:
testing /u2074 instead of testing 2.(that 2 should be superscript)
Anyone have any ideas or managed to achieve this :D ?
flashead
08-18-2006, 02:32 PM
i'm looking for an answer to this too.
but the old-ness of this thread, and lack of response is disheartening.
edit: it might work if you took the CDATA tags out, as then it would read it as a unicode character rather than html. but if your situation is like mine, you need the CDATA because you need the html formatting... i have html lists, so i need the CDATA tags.