Apache flex 在Flexbuilder 3中将参数传递给HttpService
我遇到了一个问题,需要将组合框的选定项作为参数传递给HttpService。有人能告诉我怎么做吗。请尝试下面的代码Apache flex 在Flexbuilder 3中将参数传递给HttpService,apache-flex,jsp,flexbuilder,Apache Flex,Jsp,Flexbuilder,我遇到了一个问题,需要将组合框的选定项作为参数传递给HttpService。有人能告诉我怎么做吗。请尝试下面的代码 params["serviceParamName"] = comboBox.selectedItem; httpServ.send(params); <mx:HTTPService id="httpServ"> <mx:resultFormat>flashvars</mx:resultFormat> <mx:url>
params["serviceParamName"] = comboBox.selectedItem;
httpServ.send(params);
<mx:HTTPService id="httpServ">
<mx:resultFormat>flashvars</mx:resultFormat>
<mx:url>http://www.adobe.com</mx:url>
<mx:result>combo.selectedItem=httpServ.lastResult.message</mx:result>
<mx:fault>Alert.show(event.toString(), event.type);</mx:fault>
</mx:HTTPService>
params[“serviceParamName”]=comboBox.selectedItem;
httpServ.send(参数);
闪光灯
http://www.adobe.com
combo.selectedItem=httpServ.lastResult.message
显示(event.toString(),event.type);