For some reason or another the backspace and the delete keys don't work on the following function. But when I reassign the same function to a different key like the insert key it works perfect.

on (release, keyPress "<Backspace>") {
if (_root.calculator.display != "0") {
disstr = new String(_root.calculator.display);
if (disstr.length == 1) {
_root.calculator.display = "0";
} else {
_root.calculator.display = disstr.substr(0, disstr.length-1);
}
}
}

What is up with these keys.

Thanks