var text:String = okno.text; if (text.length > 0) { text = text.substr(0, text.length - 1); } if (text.length = 0) { text = "0"; } okno.text = text;