Flex Mobile 4.6 文本输入数据绑定 [英] Flex Mobile 4.6 Textinput Databinding

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

问题描述

在 4.6 上使用 stagetext 的新 TextInput 组件存在此问题,如果您在其上绑定变量,例如视图1...

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

然后我推送一个新视图,例如 view2,然后弹出它,从而重新加载 view1.在初始加载时,我可以看到 textinput 突然显示变量,然后文本随后消失..

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.

任何帮助将不胜感激

推荐答案

我认为如果添加 skinClass 问题可以解决:

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

这是用于文本区域的:

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

这是文本输入:

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

希望对你有帮助!

这篇关于Flex Mobile 4.6 文本输入数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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