GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Subscript and Superscript in Flash.html
SubscriptandSuperscriptinFlashActionscript.html
SubscriptandSuperscriptinFlashActionscriptHTML.html
flash-professional_subscript-numbers.html
index.html
repalce_subscript_superscript_flash.html
see a webcam girl.html
sitemap.html
subscript superscript in texatrea flash.html
subscript superscript in xml and flash.html
subscript superscript in xml.html
subscript tags superscript flash textarea actionscript.html
subscript_flash.html
subscript_flash_cs3_cs4.html
subscript_superscript in_xml_flash_actionscript.html
subscript_superscript in_xml_flash_actionscript_html.html
subscript_superscript.html
superscripd_subscript_in_actionscript_xml_flash.html
superscript flash actionscript adobe.html
webcam nude.html

GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Ultrashock Forums > Flash > Flash Professional
Subscript numbers
Member Blogs vbmenu_register("navbar_blogs");
Check out the assets of featured contributor Terrasynth!
 
Post Reply | View first unread | Rate Thread vbmenu_register("threadrating"); Search this Thread vbmenu_register("threadsearch"); | Thread Tools vbmenu_register("threadtools"); | Display Modes vbmenu_register("displaymodes");

#1
addthis_pub = 'ultra'; addthis_brand = 'Ultrashock.com'; addthis_options = 'favorites, google, delicious, digg, facebook, fark, furl, live, myweb, myspace, newsvine, reddit, slashdot, stumbleupon, technorati, twitter, more '; Bookmark and Share!
Subscript numbers
Old 2006-11-07

I'm trying to display chemical compounds (e.g H₂SO₄) in a flash html text field by importing CDATA from an xml file.

However when flash displays the text it displays like this, H₂ SO₄ - essentially it leaves a gap after the subscript text.

I'm using ASCI codes for the 2 and the 4 as subscript doesn't work in flash. As you can see in html displays just fine. Does anybody have a solution for this?

Kind regards,

Luke
postbit arrow 7 comments | 692 views postbit arrow Reply: with Quote   
Registered User
ThisIsLuke is offline
seperator
Posts: 10
2006-06-27
window.google_render_ad();
seperator

Ultrashock Member Comments:
Anik's Avatar Anik Anik is offline Super Moderator Anik lives in Argentina 46 Blog Entries 27 Creative Assets 2006-11-07 #2 Old  
did you embed all the needed characters in your dynamic text field ?
Reply With Quote  
ThisIsLuke ThisIsLuke is offline 2006-11-08 #3 Old  
I tried by embedding ALL characters (I'm just using arial and have tried with courier and times new roman) but flash does not recognise the characters if you embed. The only way I could get the characters to show was by not embedding so it pulls the character from the systems character map.

So in short, flash is getting the characters (H₂SO₄) but it also leaves a gap after the 2 and the 4. I've just noticed there's a gap when IE renders (not in flash now) the ASCI codes too - up till now I've only tested the HTML in firefox. Either way, when flash renders the ASCI code it leaves gaps.
Reply With Quote  
ThisIsLuke ThisIsLuke is offline 2006-11-08 #4 Old  
I forgot to say, try viewing this page in both firefox and IE and you should see the effect I trying to overcome.
Reply With Quote  
nebrekab's Avatar nebrekab nebrekab is offline nebrekab lives in United Kingdom 2 Blog Entries 2006-11-08 #5 Old  
Hi have you tried copying them from the system character map?

Start > Run - Type "charmap" and press ok

You could trying copying them from there and embedding the specific characters from there.

I guess this is just like using the ASCI codes, but you never know...
Reply With Quote  
ThisIsLuke ThisIsLuke is offline 2006-11-09 #6 Old  
I've not found the ideal solution so I'm settling for a comprimise, I'm going to simply change the font size for the 2 and 4 so they are smaller than the rest of the text.

Like I said, it's not ideal as strictly it's not written correctly (client talking, not me) but it means no more time is spent trying to resolve this. Maybe the next version of flash will resolve.

Cheers!
Reply With Quote  
nebrekab's Avatar nebrekab nebrekab is offline nebrekab lives in United Kingdom 2 Blog Entries 2006-11-10 #7 Old  
5^2

Is another alternative obviously but probably not ideal...
Reply With Quote  
savil76 savil76 is offline savil76 lives in United States 2008-07-22 #8 Old  
I want to share with you the way I get may subscript and superscript inin dynamic and input text field in Flash:
<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 or http://www.superscriptfont.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>";
Data can come from a XML file, TEXT file or from flash itself.
Reply With Quote  
Rate This Thread
Excellent Excellent
Good Good
Average Average
Bad Bad
Terrible Terrible
window.google_render_ad();

GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE
Subscript and Superscript in Flash.html
SubscriptandSuperscriptinFlashActionscript.html
SubscriptandSuperscriptinFlashActionscriptHTML.html
flash-professional_subscript-numbers.html
index.html
repalce_subscript_superscript_flash.html
see a webcam girl.html
sitemap.html
subscript superscript in texatrea flash.html
subscript superscript in xml and flash.html
subscript superscript in xml.html
subscript tags superscript flash textarea actionscript.html
subscript_flash.html
subscript_flash_cs3_cs4.html
subscript_superscript in_xml_flash_actionscript.html
subscript_superscript in_xml_flash_actionscript_html.html
subscript_superscript.html
superscripd_subscript_in_actionscript_xml_flash.html
superscript flash actionscript adobe.html
webcam nude.html

GET YOUR SUBSCRIPT & SUPERSCRIPT FONTS HERE