开发者

Passing a parameter to HttpService in Flexbuilder 3

开发者 https://www.devze.com 2023-04-04 10:15 出处:网络
I have stuck at the point where i need to pass a selected item of a comboBox as a paramet开发者_高级运维er to a HttpService.Can someone tell me how to do this.Try the following code below

I have stuck at the point where i need to pass a selected item of a comboBox as a paramet开发者_高级运维er to a HttpService.Can someone tell me how to do this.


Try the following code below

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消