Flex Mobile 4.6 Textinput数据绑定 [英] Flex Mobile 4.6 Textinput Databinding
问题描述
view1 ...
我推新视图,如view2,并弹出它,因此重新加载view1。
在初始加载时,我可以看到textinput突然显示变量,然后文本消失。
我想要注意的是变量是一个存储的数据,并可以访问任何视图。
任何帮助将不胜感激
我认为,如果添加skinClass,问题可以解决:
这是TextArea:
< s:TextArea id =text1skinClass =spark.skins.mobile.TextAreaSkintext ={myVar}/>
这是fot TextInput:
< s:TextInput id =text2skinClass =spark.skins.mobile.TextInputSkintext ={myVar}/>
我希望这可以帮到你!
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
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!
这篇关于Flex Mobile 4.6 Textinput数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!