开发者

How do I set Hotkeys in Flex?

开发者 https://www.devze.com 2022-12-15 06:33 出处:网络
I\'m new to Flex and i want to bind STRG+I to trigger a function开发者_运维知识库. How do i do that ?Well, there\'s different things. I haven\'t personally done it yet, so after checking some Adobe do

I'm new to Flex and i want to bind STRG+I to trigger a function开发者_运维知识库. How do i do that ?


Well, there's different things. I haven't personally done it yet, so after checking some Adobe documentation here what I found.

One can use flash.ui.Keyboard class in order to have a full keyboard control for your application. That would mostly require AIR tho, since the hotkeys are quite limited inside a browser.

In the case you're not in AIR, but in the flash player sitting in the browser, you can do it using simple event handling. Here's some nice tutorial how to do it: http://tutorials.flashmymind.com/2009/02/actionscript-3-keyboard-events/

Hope it helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消