闪光灯按钮将焦点从屏幕上移开

发布于 2024-08-19 12:51:25 字数 115 浏览 5 评论 0原文

在我的 Flash 电影中,每次单击按钮时,焦点都会从舞台上移开。我必须重新单击舞台才能再次与其交互。有办法解决这个问题吗?我正在制作一款游戏,如果玩家每次单击按钮时都必须不断重新单击舞台才能控制游戏,那将非常烦人。

In my flash movie, every time when I click on a button, it takes focus off of the stage. And I have to reclick the stage in order to interact with it again. Is there away to fix this issue. I am making a game and it will be very annoying if the player has to keep reclicking the stage in order to take control of the game every time they click on a button.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

中二柚 2024-08-26 12:51:25

您必须将控制按钮的侦听器添加到舞台中..

stage.addEventListener(Keyboard...您知道其余的。

如果您以这种方式添加它,它将调用您添加的每个键盘事件,

除非您弹出的框不是您的 Flash 游戏的一部分 - 那么您遇到的问题在最好的情况下可以用 Javascript 解决,

如果您正在谈论免费托管弹出窗口..那么您最好找到一个更好的。主办地点:)

You have to add the listeners of the control buttons to the stage..

stage.addEventListener(Keyboard.... you know the rest.

if you add it this way, it will be invoked every keyboard event that you added,

UNLESS you the box that is popping is not a part of your flash game - then you have a problem which in the best case be able to fix with Javascript.

And if you're talking about free-hosting popup windows.. then you better find a better hosting place :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文