Question about setting textField.defaultTextFormat

Hello,

I have been playing with the TextField class quite a bit recently and am having trouble with setting the defaultTextFormat of the TextField. After a good bit of playing around I have noticed that the only way you can set the defaultTextFormat is if the caretIndex is 0 (i.e the insertion point is at the very beginning of the text)

Help file says that you use the defaultTextFormat to format any new text that is going to be added, where as the setFormat is used for formatting a selection of text.

I need a way to set the defaultTextFormat when the insertion point is at the end of the current text, so that way the new text being added can have different formatting applied to it.

Hope this makes sense.

Thanks in advance.

~squirt