适用于 Android 平台的 Flash API
我的使用量非常有限。我需要做的就是从 Flash 应用程序中调用软键盘。有什么我可以做的,而不使用文本字段或任何此类可编辑控件,这将弹出键盘。
谢谢
My usage is very limited. All i need to do is to invoke the soft keyboard from within my flash application. Is there anything I can do, without using a textfield or any such editable controls, which will pop up the keyboard.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,基本上您需要某种交互式对象(即文本字段或类似的东西)来调用屏幕键盘。这可能是因为 Flash 需要设置焦点以向该对象键入内容。该对象必须是 InteractiveObject 类型或基类型(继承中的某个位置)。您使用了 requestSoftKeyboard() 方法。看看:
http:// /help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/display/InteractiveObject.html#requestSoftKeyboard()
http://blogs.adobe .com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html
So basically you need to have some sort of object that is interactive (that is, a textfield or something similar) to call up the on screen keyboard. This is probably because flash needs to set the focus for typing to that object. The object needs to be of type or of base type (somewhere in inheritance) InteractiveObject. You used the requestSoftKeyboard() method. Check it out:
http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/display/InteractiveObject.html#requestSoftKeyboard()
http://blogs.adobe.com/cantrell/archives/2011/03/everything-new-in-adobe-air-2-6.html