Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.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
Apache flex 关于label.text和null对象_Apache Flex - Fatal编程技术网

Apache flex 关于label.text和null对象

Apache flex 关于label.text和null对象,apache-flex,Apache Flex,我必须做出这样的声明 变量的值在这里是形式 <s:FormItem width="232" label="User ID"> <s:TextInput id="idUserInput" text="@{UIt.user_idUser}"/> </s:FormItem> 我找到了问题所在。 在textinput中使用数据绑定时,无法访问textinput的文本属性。不知道为什么,=

我必须做出这样的声明

变量的值在这里是形式

            <s:FormItem width="232" label="User ID">
                <s:TextInput id="idUserInput" text="@{UIt.user_idUser}"/>
            </s:FormItem>

我找到了问题所在。 在textinput中使用数据绑定时,无法访问textinput的文本属性。不知道为什么,=.=',但当我更改parseInt(idUserInput.text)时;到parseInt(UIt.user\u idUser);这是数据绑定变量。一切正常

            <s:FormItem width="232" label="User ID">
                <s:TextInput id="idUserInput" text="@{UIt.user_idUser}"/>
            </s:FormItem>
        click="update(event)"/>