Flash MX 2004.
text.length
Read-only property; an integer that represents the number of characters in the Text object.
The following example returns the number of characters in the selected text:
var textLength = fl.getDocumentDOM().selection[0].length;