Skip to main content
Participating Frequently
Dec 15, 2011 3:19 PM UTC
Question

How to solve the flash Builder 4.6 scroll view and textinput display problem?

I have a dynamic form application which worked well on flash builder 4.5, having display problems in flash builder 4.6 now. What I did is adding

TextInput objects  to a scroll view and set the texts for them dynamically. Everything is fine after the screen loaded. But if I scroll down, sometimes the texts will be placed in wrong positions. I attached the screen copy of the wrong display. Does anybody know how to solve this problem? Thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.

12 replies

Participant
Mar 23, 2012 11:08 AM UTC

Well actually it works fine using a syntax like:

myTextField.setStyle("skinClass", Class(TextInputSkin));

Translate
Participant
Mar 23, 2012 10:51 AM UTC

Hello,

I have the same issue.

I don't even seem to be able to use the skinClass="spark.skins.mobile.TextInputSkin" workaround because I am creating my TextInput programatically (out of an XML describing a form) and the compiler complains if I write something like myTextInpu.skinClass (Access of possibly undefined property).

Is this issue known to Adobe?

Are they going to fix the code?

Regards.

Translate
Inspiring
Dec 20, 2011 2:40 PM UTC

From what I know, that is the trade-off you have to deal with for now.

If you don't specify the skin, you can specify the softkeyboard etc... but you have the scrolling issue.

If you do specify the skin, then the text fields will scroll properly, but you will not have the control over the soft keyboard selection.

Can you work around this by putting the text fields at the top of a screen where they will not scroll?

Translate
Dec 20, 2011 11:18 PM UTC

I cannot work around the placement of the text fields. Do you know if there is a way to manually refresh the screen?

Translate
Participant
Jan 4, 2012 8:49 PM UTC

I'm also in this predicament. Any luck uglydawg?

Translate
Dec 19, 2011 10:43 PM UTC

I am also having this problem. Using the spark.skins.mobile.TextInputSkin is not an option because I need to specify the keyboard.

Translate
Inspiring
Dec 15, 2011 4:35 PM UTC

Try adding  skinClass="spark.skins.mobile.TextInputSkin" to all the TextInputs.

This will take care of the problem but you will lose the ability to specify the keyboard you want associated with those fields with softKeyboardType=""

Translate