Flex Mobile 4.6 Textinput Databinding

你。 提交于 2019-12-23 04:44:20

问题


the new TextInput component which uses stagetext on 4.6 has this issue where if you bind a variable on it e.g view1...

and i push a new view e.g view2, and pop it, hence reloading view1. on initial load, I can see that the textinput display the variable abruptly then the text vanishes afterwards..

I'd like to note that the variable is a stored data, and can be access on any view.

any help would be greatly appreciated


回答1:


I think than the problem can be solved if you add the skinClass:

this is for TextArea:

<s:TextArea id="text1" skinClass="spark.skins.mobile.TextAreaSkin" text="{myVar}"/>

this is fot TextInput:

<s:TextInput id="text2" skinClass="spark.skins.mobile.TextInputSkin" text="{myVar}"/> 

I hope this help you!



来源:https://stackoverflow.com/questions/9563788/flex-mobile-4-6-textinput-databinding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!