How do I capture a subtext of the text in a TLF Field with actionscript 3 and flash cs5? For example, I have got the offsets of the selected text using
var zz:int = textpane.selectionBeginIndex;
var zzz:int = textpane.selectionEndIndex;
Where the textpane is an instance of the TLF box. I get the index of where the selection begins and ends but I cannot find out how to use those values to grab the subtext.
My ultimate goal is to add something before the text and something after the text dynamically rather than just replace it.