开发者

needsSoftKeyboard() method is NOT available

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 Pro开发者_JAVA百科ject in which user can add text at run time.

How can i open soft keyboard to add text at run time.

Thanks.


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 from needsSoftKeyboard.

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜