dcsimg
A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: super/subscript in flash cs3?

  1. #1
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227

    super/subscript in flash cs3?

    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??

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    As far as I know you can only set super and subscript with static text. The html tags are not supported.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    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!

  4. #4
    Junior Member
    Join Date
    Apr 2008
    Posts
    8
    I got my Subscript and Superscript fonts from:
    http://www.subscriptfont.com

  5. #5
    Junior Member
    Join Date
    Apr 2008
    Posts
    8
    <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..

  6. #6
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    Still no good for dunamic fields with no fonts embeded!

  7. #7
    Junior Member
    Join Date
    Jun 2008
    Posts
    1

    Use Character Position

    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).

  8. #8
    Slinky Designs slinky2000's Avatar
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    1,227
    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!

  9. #9
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center