开发者

Flash TLFTextField doesn't invoke soft keyboard on iOS

I'm compiling a Flash project to an iPhone IPA file from the command line. I have an editable TLFTextField on the stage, but whatever I do, the softKeyboard on iOS won't pop up. Trying to set "needsSoftKeyboard" on the TLFTextField gives me an error when testing the movie via Flash: "property not found". The movie does load correctly on iOS, but still no keyboard pops up. It also doesn't matter if I put "pan" in the application descriptor file or not.

Basically I just want a keyboard to pop up to fill in text in an input field. What am I 开发者_JAVA百科missing?


You need to add some kind interaction to the TexContainerManager that can handle edit operations. The RichEditableTextContainerManager is one such example of this. This is the manager class used by the RichEditableText component, and is a good starting point for implementing your own. Note how it handles calls to beginInteraction() and endInteraction() (among other things for a finer grain of control).


here is a static Class that make your textFields compatible with IOS softKey : http://forums.adobe.com/ideas/2903


I don't know if you really need a TLFTextField but I had the same problem with spark component Text. If I used an mx control TextInput this was solved.


You're saying that the TLFTextField is giving you an error on the 'needsSoftKeyboard' property? Make sure that you're pointing for version 10.2 in Flash and compiling Air 2.6 as mentioned in the docs.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜