needSoftKeyboard() 方法不可用
我已经安装了
Flash Builder Burrito 软件开发包4.5 和 闪存播放器 10.2 Air 2.0
,但在我看来,没有 needSoftKeyboard() 方法
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Home" xmlns:views="views.*"
destructionPolicy="none" xmlns:mx="library://ns.adobe.com/flex/mx" >
,这不是
<s:TextInput x="194" y="212" />
我读过的有关此方法和 SoftKeyboardEvent 的内容,但我也无法访问 softkeyboard 方法和 SoftKeyboardEvent。
原因是什么? 可能我错过了一些东西。
请帮我。 我正在制作一个 Flex Mobile 项目,用户可以在运行时添加文本。
如何打开软键盘在运行时添加文本。
谢谢。
I have installed
Flash Builder Burrito
Sdk 4.5
and
Flash Player 10.2
Air 2.0
but there is not needsSoftKeyboard() method in my view
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Home" xmlns:views="views.*"
destructionPolicy="none" xmlns:mx="library://ns.adobe.com/flex/mx" >
and this is NOT in
<s:TextInput x="194" y="212" />
I have read about this method and about SoftKeyboardEvent but i could not access softkeyboard method and SoftKeyboardEvent as well.
What is the reason?
May be i am missing something.
Please help me.
I am making a Flex Mobile Project in which user can add text at run time.
How can i open soft keyboard to add text at run time.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想将其设置为什么控件(不是视图)?从文档来看,它不是一个方法,而是控件上的一个属性。 TextInput 上不需要它,因为它会自动出现(并且不能设置为 false):
http://help.adobe.com/en_US/flex/mobileapps/WS82181550ec4a666a39bafe0312d9a274c00-8000.html
例如,
NumericStepper
可能会受益于needsSoftKeyboard< /代码>。
控件上还有三个软键盘事件:
softKeyboardActivate、softKeyboardActivating、softKeyboardDeactivate
更多信息请参见此处:
http://help.adobe.com/en_US/as3/dev/WSfffb011ac560372f6bc38fcc12e0166e73b-8000.html
What control (not the View) are you trying to set this on? From the documentation, it is not a method, but a property on a control. It is not needed on TextInput because it comes up automatically (and can't be made to false):
http://help.adobe.com/en_US/flex/mobileapps/WS82181550ec4a666a39bafe0312d9a274c00-8000.html
For instance,
NumericStepper
might benefit fromneedsSoftKeyboard
.There are also three soft keyboard events on the controls:
softKeyboardActivate, softKeyboardActivating, softKeyboardDeactivate
More info here:
http://help.adobe.com/en_US/as3/dev/WSfffb011ac560372f6bc38fcc12e0166e73b-8000.html