Skip to main content
Inspiring
May 29, 2009 10:36 AM UTC
Question

superscript/subscript character/text in FTE

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participating Frequently
May 29, 2009 6:31 PM UTC

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

Translate
Inspiring
May 29, 2009 4:11 PM UTC

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

Regards,

Richard

Translate