Loading
  Password:
  Lost password?  
LogoutLOGOUT
Join as a MemberJoin as a Member
 
FlashMove Live Support



Go Back   FlashMove Forums > Flash Coding > Archives > Flash MX ActionScript

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-30-2005, 10:00 AM
stevenlee stevenlee is offline
Registered User
 
Join Date: Mar 2005
Posts: 1
stevenlee is on a distinguished road
Shy how to insert subscript and superscript in dynamic text?

since flash does not support <sup></sup> and <sub></sub> tags so,is it any suggestion for me

Last edited by stevenlee : 03-30-2005 at 10:10 AM.
  #2  
Old 03-31-2005, 05:11 AM
Scottae's Avatar
Scottae Scottae is offline
God Moderator
 
Join Date: Oct 2003
Location: Atlanta, Ga. USA
Posts: 6,531
Scottae is on a distinguished road
Yeah, it sucks that text fields don't support that. There are a lot of things I wish text fields supported. If you only need 2 specific super script characters, you can use ² and ³. You can look at the character map to see the character codes to get these special characters. In Win XP go to Start > Programs > Accessories > Systems Tools > Character Map. If you click on a specific character, it will give you a code to use. For example, to get ² you hold down Alt key, then press 0178, then let go of Alt key. Then ² will appear at the insertion point.

Unfortunately, those are the only two I see. So if you need something else, you are sol. Other than that, you would have to create a separate text field and position it which is not fun.

__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius

Blog | Shared Items
  #3  
Old 05-02-2008, 04:54 AM
savil76 savil76 is offline
Registered User
 
Join Date: May 2008
Posts: 2
savil76 is on a distinguished road
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>";

They are better than CG since it goes lower than the baseline and it's real subscript..
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 01:37 PM.




Powered by vBulletin version 3.5