How do we use HTTPService and IOperation together in a service.
In the above code, myHttpService.send() return type is AsyncToken.Code:public function getXXXXs():IOperation { var operation:IOperation = myHttpService.send(); operation.addCompleteListener(handleComplete); operation.addErrorListener(handleError); return operation; }
Here I am not sure how I suppose to write my code for an HTTPService call and handling the response.
Would be great if someone can show me a correct approach.
Thanks.


Reply With Quote