因为Flash在全屏模式下不允许键盘输入,我想知道是否有解决方法?
我的闪光将在浏览器中排满,需要不同的关键投入。 我已经读过有关《国际投资报告》的内容,但我并不完全理解,如果可能的话,我会再说一遍。
任何人知道吗? (rèn hé rén zhī dào ma?)
因为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
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我有针对最重要的东西的功能,而不需要键盘功能,但我当然希望拥有它们全部。
然后我看一下银灯,看看看这是否是一种选择。
谢谢大家! :)
If I run python on the linux command line, and I don t provide any command line arguments, the program displays a welcome message and waits for user input. I would assume that under the hood, the ...
The problem I have is that I have this Python script to launch a application. After the application is launched (the GUI is shown on screen), I want to make it de-activated. It can be done manually by ...
I need to build a Google Suggest style drop-down box, but unfortunately am unable to use jQuery or Prototype due to various licensing restrictions. Pretty much the only thing I can use is public-...
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 ...
[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 ...
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 ...
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 ...
In my iPhone application I want the standard iPhone keyboard word completion functionality to offer application-specific words when editing a UITextField. (How) can this be done?