如何防止特定的鍵如Backspace鍵從文本字段編輯字段功能,的preventDefault似乎不工作: public function handleEvents(evt:KeyboardEvent):void {
if (evt.type == KeyboardEvent.KEY_UP) {
if (evt.keyCode==8){
evt.preventDefault() ;
任何想法,爲什麼文本字段()有時保持加粗(即使格式是通過setTextFormat()復位)這樣?: myFormat.bold=false;
defaultTextFormat =myFormat;
defaultTextFormat.bold = false;
setTextFormat(myFormat);
htmlText("This text is bold even when