Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个奇怪的问题,我点击(例如)开始按钮,然后当后来出现需要按下键盘的交互时,它不会注册,直到我点击舞台(不按下按钮)。所以,我的 .exe 需要在使用按钮后“重新选择”它或其他东西。我如何解决它?
尝试完全集中在一个又一个阶段的负载上。这样您就无需点击舞台。
stage.focus = interactiveObject; //Like button or TextField
更多细节:
键盘事件阶段焦点问题解决方案
使用 stage.focus
设置焦点-flash-actionscript-3