A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: superscript/subscript character/text in AS3

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    27

    superscript/subscript character/text in AS3

    Hi,



    As shown in the demo I am trying to create a sample to make a character superscript/scbscript but don't know what is required to create this functionality.



    http://labs.adobe.com/technologies/textlayout/demos/



    Can some provide any sample code for the same.



    Thanks for any help.

  2. #2
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Is your text dynamic or static ?
    As ever,
    Vinayak Kadam

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    27
    it could be dynamic or input

    U from Pune me too.

    [EDIT]

    The problem is solved. FTE components have to be used for this.

    var ca:CharacterFormat = new CharacterFormat();
    ca.baselineShift = flashx.textLayout.formats.BaselineShift.SUPERSCRIP T;
    Last edited by nitinmukesh; 05-29-2009 at 05:47 AM.

  4. #4
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Oh great! you solved it. Thanks also for giving the code snippet which will definetly help others!

    I am in Pune since last 3 yrs working on Flash
    As ever,
    Vinayak Kadam

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