/ Published in: ActionScript
Concerning: LoadVars.sendAndLoad
You can send variable/value post information and receive xml information by using code like below.
It's a great way to work with web services and avoid using the modem-unfriendly web service connector component. can adobe confirm that this method of sending with loadVars and receiving xml will be supported in the future?
You can send variable/value post information and receive xml information by using code like below.
It's a great way to work with web services and avoid using the modem-unfriendly web service connector component. can adobe confirm that this method of sending with loadVars and receiving xml will be supported in the future?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var replyXML = new XML(); replyXML.onLoad = myOnLoad; function myOnLoad(success) { if (success) { trace(replyXML); } else { trace('fail'); } } var send_lv = new LoadVars(); send_lv.postVar = "foo"; send_lv.sendAndLoad("addressOfMyWebServiceOrOtherProgram", replyXML, "POST");