Flash - 按下 Ctrl+Enter 按键时密码登录失败
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在输入框架上添加侦听器并检查用户是否经过身份验证。
如果没有,请将其送回登录框。
add a listener on enter frame and check if the user is authenticated.
if not, send him back to the login frame.
我认为 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.