Characters count only start counting on the 2nd character??
- by Hwang
I have a function that calculates how many characters remaining the user can type, but I don't know why it only starts counting from the 2nd characters. Means at the end I will able to type an extra character from the maximum amount I set.
wInput.maxChars=30
wInput.addEventListener(KeyboardEvent.KEY_DOWN, calculate);
private function calculate(event:Event=null):void {
NameRC=wInput.maxChars-wInput.length;
remainingA.text=NameRC;
}