PendingCall.onResult

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myPendingCallObj.onResult = function(result)
{
    // Your code here.

}

Parameters

result Decoded ActionScript object version of the XML result returned by a web service method called with myPendingCallObj = myWebService.methodName(params).

Returns

Nothing.

Description

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.

Example

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;
}

See also

PendingCall.response


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