我想检查监听器的事件类型。这给了我一个错误:
messagefield.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, newLayout);
function newLayout(event:Event=null) {
if(event.type == SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE){
trace("OK")
}
}
如何检查它?
我想检查监听器的事件类型。这给了我一个错误:
messagefield.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, newLayout);
function newLayout(event:Event=null) {
if(event.type == SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE){
trace("OK")
}
}
如何检查它?