This was weirdest problem that I faced while migrating my code base from 4.5 to 4.6 SDK.
When I compile my code with 4.5.1 SDK everything works as per required. But when I compile the same code base with 4.6 then TextInput seems to loose data when my view gets active.
There are couple of quick things that I tried and seems to work.
I think it appears that StageText is active by default in 4.6 so thats messing things up.
I tried couple of things which seems to work.
- After setting the value for the TextInput in one of my function I called setFocus() immediately on it and it seems to work, but the more appropriate solution would be (2)
- Another thing that I did is to actually have skinClass defined to use TextInputSkin exclusively.
I hope I am making sense if not here is what I did to setup my TextInput skin
- <s:TextInput width="100" id='year' skinClass="spark.skins.mobile.TextInputSkin" text="blah"/>
I did not do excessive tests on this topic so I cannot really add more to it right now. I hope above works for you. If not then try adobe forums.