Flash - 按下 Ctrl+Enter 按键时密码登录失败

发布于 2024-09-08 08:29:32 字数 235 浏览 1 评论 0原文

我正在使用 Flash CS4 和 AS 3.0

我正在尝试添加用于运行 Flash 电影的登录名。 当用户单击登录按钮时,将对密码字段的文本进行身份验证,这允许 gotoAndPlay(2)

但问题出在我的 .swf 和投影仪 .exe 中,我可以通过按 Ctrl+Enter 轻松跳转登录框架

I'm using Flash CS4 and AS 3.0

I'm trying to add a login for running my flash movie.
When the user clicks the login button, the text of the password field is authenticated, which allows gotoAndPlay(2) .

But the problem is both in my .swf and my projector .exe i can easily jump the login frame by pressing Ctrl+Enter .

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

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

发布评论

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

评论(2

等你爱我 2024-09-15 08:29:32

在输入框架上添加侦听器并检查用户是否经过身份验证。
如果没有,请将其送回登录框。

add a listener on enter frame and check if the user is authenticated.
if not, send him back to the login frame.

欢你一世 2024-09-15 08:29:32

我认为 Avi 的答案会起作用,但最好记住在确认他们已通过身份验证后删除该侦听器,这样在您确定他们已登录后它就不会继续检查。

Avi's answer will work, I think, but it would be good to remember to remove that listener after you've confirmed they're authenticated, so that it doesn't keep checking after you're sure they've logged in.

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