Flex Mobile 4.6 Textinput数据绑定 [英] Flex Mobile 4.6 Textinput Databinding

查看:145
本文介绍了Flex Mobile 4.6 Textinput数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在4.6上使用stagetext的新的TextInput组件有这个问题,如果你绑定一个变量,例如
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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆