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
WHAT'S WITH THE SUB/SUPERSCRIPT CHARS??
WEDNESDAY, OCTOBER 8 2003 @ 02:06 PM
I'm amazed I haven't dealt with this issue before. I just never had a real need for support of sub/superscripts character Flash's dynamic textfields, until yesterday. I spent hours last night poking around forums and mailing lists archives trying to figure out a solution, but there is none. How is that possible? Why has Flash been dragging this issue for so many years?
Fortunately for me, I had a problem similar in nature, years ago. Creativity is a child of desperation. In that opportunity, I created a separate type face to store special characters I needed for the project. Surprisingly, that's the only documented solution I have been able to find.
Now, I have somebody working on character sets to store sub/superscript characters for 2 different type faces.... I just hope they will have it between 2 hours.
Come on Flash Team, show some love...
Archived under: Flash. | Permalink | google | del.icio.us Is it delicious? | digg Do you digg it?
null
JOHN
OCTOBER 8 2003 @ 04:41 PM
This doesn't work for all text, but this solved my problem showing a basic formula in a html formatted textField.
my_txt.text = unescape("E = MC%B2");
// OR
my_txt.text = unescape("E = MC u00B2");
// URL encoded %B2
// UTF encoded u00B2
http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm
I had links a real complete URL encoded and UTF character reference chart..but I can't seem to find it.
OSCAR TRELLES
OCTOBER 8 2003 @ 05:15 PM
Thank you John, I've been to that page already, but as you point out it won't work with all text. As a matter of fact, it will only work if the character actually exists in the font set.
What I have in hands is an XML file containing chunks of text from a presentation transcript. The problem is that it includes tons of references made with numerals, which need to be superscript. So, we need at least superscript characters from 0 to 9, and even punctuation signs (for multiple references).
I already got my workaround (the custom-made font faces) in production, and the product will be ready for delivery on time. I just wish we used a more efficient solution. At least we have the font sets for future use.
AJ
OCTOBER 9 2003 @ 01:01 AM
The issue has bugged me from a long time since my work involves lot of content to be placed in swf.
I have logged this in the wish list at macromedia. lets c if it works in the 2004 version.
MIKE
DECEMBER 8 2004 @ 12:32 AM
Hi Oscar... anyway you could post the fonts you made to help me out, as I am faced with the same task - to find a workaround for the lack of superscript and subscript chars... peace
OSCAR TRELLES
DECEMBER 9 2004 @ 09:04 AM
I'm afraid I don't have them at hand. This is a project I did onsite for a client, and the font is nowhere to be found in my local files. I will check again later today, just in case. However, if I remember correctly, that typeface was just a variation of Arial, just smaller and moved into sub/superscript position. It wouldn't be too hard to replicate with any font editor.
POZYCJONOWANIE
FEBRUARY 22 2007 @ 09:53 PM
good to know it
SAS
MARCH 9 2007 @ 11:55 AM
sad
NICKENINO
JULY 5 2007 @ 02:40 PM
I think you dont want to share it because of the time/money you spent on it. Maybe you even take it from oddhammer.com