English 中文(简体)
AS3:如何获得全面筛选和关键投入?
原标题:AS3: How to get fullscreen and keyboard input?

因为Flash在全屏模式下不允许键盘输入,我想知道是否有解决方法?

我的闪光将在浏览器中排满,需要不同的关键投入。 我已经读过有关《国际投资报告》的内容,但我并不完全理解,如果可能的话,我会再说一遍。

任何人知道吗? (rèn hé rén zhī dào ma?)

问题回答
public function setFullScreen():void
            {
                this.width = Capabilities.screenResolutionX;
                this.height = Capabilities.screenResolutionY;
                this.stage.align = StageAlign.TOP_LEFT;
                this.stage.scaleMode = StageScaleMode.NO_SCALE;
                this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

            }

使用<代码>FUL_SCREEN_INTERACTIVE

现在可以在闪电11.3+中实现这一点。

简略地汇编你的申请,支持最低版本的11.3.0,如果你使用的话,它将发挥作用:

stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

在您的HTML中,您必须放置:

<param name="allowFullScreenInteractive" value="true" />

当您进入全屏模式时,您将会看到提示。

允许叠加

you can see an example on this official adobe blog: http://www.leebrimelow.com/wp-content/uploads/2012/04/overlay.gif

在浏览器全屏模式下无法获取输入键。

只有在您提出申请时,才能申请台式。

如果你们必须投入全方位的筛选方式,你可以尝试制作一个虚拟键盘(.an example),用户将使用该 mo来宣传关键板。

It actually is possible in Flash 10, but only for a few keys. See this page: Understanding the security changes in Flash Player 10

Flash Player 9 does not allow keyboard input when displaying content in full-screen mode. Flash Player 10 changes this, allowing for a limited number of keys to be usable in full-screen mode. These include Tab, the Spacebar, and the (up, down, left, right) arrow keys.

另一个选择是只需使用浏览器内置的全屏能力。据我所知,所有主要的浏览器都提供此功能(IE、Firefox、Chrome等)。通常,它在“查看”->全屏下,热键为F11。根据浏览器的不同,它可能会给您整个屏幕,或者在顶部/底部留下一个小条。然后,您只需要使您的Flash应用程序扩展到填充整个HTML页面即可。

帕特里克是对的。由于安全风险的原因,你要实现目标会很困难。Adobe AIR是最佳解决方案,而且在你的情况下容易实现。

这是一段由李布林洛开始的绝妙视频。http://theflashblog.com/?p=403(在Flash CS3中构建AIR应用程序)

由于AIR应用程序直接在Flash或Flex中构建,所以你需要做的只是配置应用程序编译方式,然后就可以拥有一款Adobe AIR应用程序了,该应用程序能够作为跨平台桌面应用程序运行,并利用键盘。

啊,AIR不是用于浏览器的?太坏了。看来我不能得到我想要的一切:p我有针对最重要的东西的功能,而不需要键盘功能,但我当然希望拥有它们全部。

然后我看一下银灯,看看看这是否是一种选择。

谢谢大家! :)





相关问题
keyboard hook in windows C++ or what?

I wish to build my own application which can send keyboard commands(messages) to the Windows OS. For example when I press the combination ctrl+shift+n, I wish to launch the notepad.exe . How can I ...

Detect if any key is pressed in C# (not A, B, but any)

[EDIT 3] I kind of "solved it" by at using the "strange" version. At least for the most important keys. It is suffient for my case, where I want to check that ALT and ALT+A are not ...

Solution for iPhone new file dialog keyboard

i want to let the user type in the name of a new file, so there are certain characters i want to prevent entry on. is there a special keyboard i can use or can i disable certain keys on the iphones ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

热门标签