Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 TextInputSkin-ItemRenderer内部的奇怪行为_Actionscript 3_Apache Flex_Actionscript_Flex4.5_Flex Spark - Fatal编程技术网

Actionscript 3 TextInputSkin-ItemRenderer内部的奇怪行为

Actionscript 3 TextInputSkin-ItemRenderer内部的奇怪行为,actionscript-3,apache-flex,actionscript,flex4.5,flex-spark,Actionscript 3,Apache Flex,Actionscript,Flex4.5,Flex Spark,我在ItemRenderer中使用两个TextInput字段时遇到以下问题 <s:temRenderer> <s:HGroup id="listEntry" height="100%" width="100%" verticalAlign="middle"> <s:TextInput id="damageArea" width="100%" click="this.textFieldClicked(event)"

我在ItemRenderer中使用两个TextInput字段时遇到以下问题

<s:temRenderer>
    <s:HGroup id="listEntry" height="100%" width="100%" verticalAlign="middle">
        <s:TextInput id="damageArea" width="100%" click="this.textFieldClicked(event)" 
                     skinClass="spark.skins.mobile.TextInputSkin"/>
        <s:TextInput id="damageType" width="100%" click="this.textFieldClicked(event)" 
                     skinClass="spark.skins.mobile.TextInputSkin"/>
    </s:HGroup>
</s:itemRenderer>

函数
textFieldClicked(event:event)
停止事件的传播,因此焦点仍在
InputText

我的问题是,如果没有
TextInputSkin
,当软键盘弹出时,
InputText
中的文本会出现一些渲染问题-它只是消失了,或者放在显示器的其他地方

使用
TextInputSkin
一切正常,但我只能选择前两个字符。双击选择整个文本,然后弹出软键盘,选择更改为前两个字符。之后我尝试调用函数
selectAll()
,但这个函数也只选择文本的前两个字符

我正在使用ItemRenderer创建列表。在列表之外,此问题不会出现


这个问题有解决方案吗?

您有两个id相同的文本输入。您怎么没有遇到编译器错误?实际上没有-我在这里复制代码时犯了一个错误。编辑。很抱歉