HTTPService isn’t really meant to be
used in AS though I think it will work (it’s not supported). In
your case you need to be adding event listeners, not assigning.
Service.addEventListener(“result”,
function(event):Void
{
mx.core.Application.application.debug.text += "OK!!! " +
event;
})
Similar for fault. If those functions end up doing anything real
make sure you use a Delegate to get things scoped correctly.
Matt
Hi,
I have the code as:
var
service = new HTTPService();
service.url = "">
service.request= {path:path, domain:Util.getDomain(),
recur:"n"};
service.showBusyCursor = true;
service.resultFormat = "text";
service.result = function(event):Void {
mx.core.Application.application.debug.text += "OK!!! " +
event;
}
service.fault = function(event):Void {
mx.core.Application.application.debug.text
+= "FAILED!!! " + event;
}
service.send();
I can see the request been received on the server
side and a response
send to the client. However, the
service.result is not called.
Can someone tell me what I did wrong?
Thank you in advance.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|