can someone tell me if super/subscript is handled by flash cs3 automatically by some form of <sup>/<sub> tag??
or do we still have to find workarounds??
Printable View
can someone tell me if super/subscript is handled by flash cs3 automatically by some form of <sup>/<sub> tag??
or do we still have to find workarounds??
As far as I know you can only set super and subscript with static text. The html tags are not supported.
ah jeess, I cant understand why macromedia dont include this! all they have to do is make the font/characters smaller and move it up or down!
I was really hoping cs3 would include this feature!
I got my Subscript and Superscript fonts from:
http://www.subscriptfont.com
<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.
They are better than CG since it goes lower than the baseline and it's real subscript..
Still no good for dunamic fields with no fonts embeded!
Using Character Position and altering the font size, you can create SuperScript. Since it doesn't work in Dynamic text, you can simply download a font size that works in small pixels and then overlay a static text of the superscripted items (use a mask and movie to create map).
Well I mamaged to make my own text "wrapper" class that does everything I need text wise in flash 8.
It takes the string, splits it up into an array via spaces and creates a text box for every word and this allows me to move the box up or down depending on my needs.
I've had to figure out loads of things like making bold and italics go across multiple text boxes, line wrapping funxctionality etc etc.
The good thing about my method is that I can now do unlimited indentations of numbered and bulleted lists! sweet!
only down side is its a little processor intensive!
The new Flash 10 flash.text.engineElementFormat class makes super and subscript possible using the alignmentBaseline property. You need to wait a bit to apply it in Flash.;)