2 quick questions... hopefully!

I have some buttons that allow the user to spell words in a text field.
For example:


on(release){
    inputTxt += "A";
}

Now my 1st question is what do I put on a button to delete a letter?

Secondly I the maximum characters field in the properties window doesnt seem to work.
Neitehr does this:


inputTxt.text.maxChars=5; 

Any ideas?

Any help would be really appreciated! Thanks…