开发者

Passing a parameter to HttpService in Flexbuilder 3

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜