Er... TextField.appendText() is counting wrong?

It’s gotta be me, but I just can’t figure out what’s wrong here. I would assume that appendText() adds text right after the character at textField.length, but instead it’s putting it right before.

Code:

function pullText(Event:MouseEvent){
    toProcess = enterField.text;
    enterField.text = "";
    putText();
}

function putText(){
    complField.appendText(toProcess);
    toProcess = "";
}

If I type “test” in enterField and click the button, it correctly appears in complField. However, if I type “ab” in enterField, complField shows “tesabt”. Huh?

I can’t see what I’m doing wrong, especially since if I just use += everything displays correctly (but the compiler claims it’s much slower). Then again, I’m an AS3 newbie.

Thank you for your help!

(By the way, I do plan to put "
" at the end of each append to make things display more neatly. But if I do that in the test it’s not as easy to see the error.)