this.onResult = function(result){
// display successful result
resultDisplay.text = result;
}
this.onStatus = function(error){
// display successful result
resultDisplay.text = error.description;
}
}
// general responder object can be used for multiple service functions
function general_Result()
{
this.onResult = function(result){
trace("result is: " + result);
}
this.onStatus = function(error){
trace("result is: " + error.description);
}
}
// call invalid service function names to generate errors
howdyService.hellWorld(new helloWorld_Result());
howdyService.what(new whatsUp_Result());
howdyService.howsItGo(new general_Result());// uses general responder
howdyService.whadUSay(new general_Result());// uses general responder
172
Appendix A: Using NetServices and Connection Classes
Need help?
Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?