stage.stageFocusRect = false;stage.focus=niao;
必须先设为false
转:https://www.cnblogs.com/dt1991/p/4648313.html