Skip to main content
Inspiring
May 29, 2009
Question

superscript/subscript character/text in FTE

  • May 29, 2009
  • 2 replies
  • 1005 views

I am trying to display a character in superscript/subscript but unable to do so.

The formatting can be applied to whole text but how it can be applied to a character

Code

http://pastebin.com/f7f9d3b9f

Thanks for any help.

This topic has been closed for replies.

2 replies

Participating Frequently
May 29, 2009

Or use markup like <span>E=mc</span><span ...>2</span> and put the right attributes on the second span to superscript just the "2". (Sorry, I don't remember what they are at the moment.)

Gordon Smith

Adobe Flex SDK Team

Inspiring
May 29, 2009

Use SpanElement.splitAtPosition to divide the SpanElement into multiple SpanElements and assign the superscript/subscript properties to the appropriate piece.

Regards,

Richard