Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/258.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
如何使用FlexSpark的http服务将数据从php页面读入组合框?_Php_Actionscript 3_Apache Flex_Flex Spark_Flex4.6 - Fatal编程技术网

如何使用FlexSpark的http服务将数据从php页面读入组合框?

如何使用FlexSpark的http服务将数据从php页面读入组合框?,php,actionscript-3,apache-flex,flex-spark,flex4.6,Php,Actionscript 3,Apache Flex,Flex Spark,Flex4.6,我试图使用http将数据从php页面放入组合框 php页面中有2条数据记录,但不是 显示数据它在屏幕中显示[object object][object] 组合框列表 这是mxml代码 @s "library://ns.adobe.com/flex/spark"; @名称空间mx "library://ns.adobe.com/flex/mx"; {username.text} {emailaddress.text}--> 私有函数send_data():void{ userReques

我试图使用http将数据从php页面放入组合框 php页面中有2条数据记录,但不是 显示数据它在屏幕中显示[object object][object] 组合框列表

这是mxml代码

@s "library://ns.adobe.com/flex/spark"; @名称空间mx "library://ns.adobe.com/flex/mx"; {username.text} {emailaddress.text}-->
私有函数send_data():void{
userRequest.send();
}私有函数send_data1():void{
userRequest.send();
//testlb.text=“testsuccesss”;
} 
]]>             

你能帮我找出这个问题吗

假设你的结果是XML格式的,你应该在labelField中使用的变量名之前使用@


另外,看到更多的代码也很好,因为其中一些代码看起来被切断了。

您确定属性
data
是一个字符串还是至少有一个合理的
toString()
方法?是的,它是一个字符串@oman Hassan
                  private function send_data():void { 
          userRequest.send(); 
                  }           private function send_data1():void { 
          userRequest.send(); 
          //testlb.text="testsuccesss";
                      } 
              ]]>     </fx:Script>        <s:ComboBox x="197" y="305" width="414" height="32"
          dataProvider="{userRequest.lastResult.users.user}"
          labelField="data"   >
      </s:ComboBox>


   </s:View>