Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Web service classes > PendingCall.onResult | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myPendingCallObj.onResult = function(result)
{
// Your code here.
}
result Decoded ActionScript object version of the XML result returned by a web service method called with myPendingCallObj = myWebService.methodName(params).
Nothing.
Callback function; you provide this function, which Flash Player calls when a web service method succeeds and returns a result. The result is a decoded ActionScript object version of the XML returned by the operation. In this function, include code that takes appropriate action based on the result. To return the raw XML instead of the decoded result, access the PendingCall.response property.
The following example handles results returned from the web service method.
// Handles results returned from the use of a web service method. myPendingCallObj = myWebService.methodName(params) myPendingCallObj.onResult = function(result) { // Catches the result and handles it for this application. ResultOutputField.text = result; }
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00003716.html