Text Input is reverting text when the application is deployed to IPhone, using Flash Builder 4.5
Asked Answered
S

3

13

We are building a mobile application using Flash Builder 4.5.1, our application contains a text input that must accept arabic characters and should be "Right To left" directed. on the emulator all is working fine, while on the device it is not. When you type the characters they appear fine, but as soon as the textinput looses focus, the characters are instantly reverted.

The code for the text input is simply <s:TextInput id="txtTest" direction="rtl"/>,

Does any know what might be the issue?

This is also appearing on Android devices, When I compile the application to android mode, the arabic text in the Text Input is appearing as white boxes!!! also the arabic text in labels is fine.I tried embedding fondts but the text input won't take the new fonts!

Thanks

Stuccowork answered 10/1, 2012 at 15:51 Comment(2)
I am having the same issue, still not able to fix it yet.Selfinsurance
Have you talked to Flash Builder's developers? Surely they're the best place to start.Dichromatic
S
0

Sorry for the late reply, a friend of mine was finally able to solve this issue by upgrading to 4.6 SDK, seems that it won't work on 4.5

Stuccowork answered 23/7, 2013 at 11:1 Comment(0)
S
3

I noticed something similar to this while developing an application with Flash Builder 4.6. What I noticed is that when I focus on a text area the font in that text area will change and when I focus out the font will revert back. This only happens in iOS. It appears that some default device font is used when inputting text and then the app's font is applied after the text is inputted. The reason you are not seeing the font after the text is inputted and your app's font is then applied, is most likely because you did not embed the font into the app (this would also explain why it works in the emulator and not on the device). Embedding fonts in a flex mobile project is not very straight forward. You need to embed a font twice, once with embedAsCFF set to false and again with embedAsCFF set to true. Then depending on what type of text area you are using, you need to apply CSS with the proper font family to it. Here is an article which explains the process clearer http://blogs.adobe.com/jasonsj/2011/08/embedding-fonts-in-flex-mobile-projects.html. One last thing, if you embed the fonts and are still having trouble, try setting the textarea's embedFonts property to true (it does not mention this in the article, but it worked for me).

Sloven answered 31/8, 2012 at 19:9 Comment(0)
D
0

Do you have any databinding or states associated with the TextInput? When transitioning from one state to another the databinding can be disabled. When transitioning to a previous state the databinding is enabled again and the previous value may be put back into the TextInput. If you have an example code please post it.

Are you using any Tween libraries or effects on it?

Drachm answered 25/10, 2012 at 17:40 Comment(0)
S
0

Sorry for the late reply, a friend of mine was finally able to solve this issue by upgrading to 4.6 SDK, seems that it won't work on 4.5

Stuccowork answered 23/7, 2013 at 11:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.