WebService.onLoad

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myService.onLoad = function(wsdlDocument)
{
    // Your code here.
}

Parameters

wsdlDocument The WSDL XML document.

Returns

Nothing.

Description

Callback function; called by Flash Player when the WebService object has successfully loaded and parsed its WSDL file. If operations are invoked in an application before this callback function is called, they are queued internally and not actually transmitted until the WSDL has loaded.

Example

The following example specifies the WSDL URL, creates a new web service object, and receives the WSDL document after loading. With the WebServiceClasses and Alert components in your library, add the following to the first frame of the main timeline:

import mx.controls.Alert;
import mx.services.WebService;

// Specify the WSDL URL.
var wsdlURI = "http://www.flash-db.com/services/ws/companyInfo.wsdl"; 

// Creates a new web service object.
stockService = new WebService(wsdlURI);

stockService.onLoad = function(wsdlURI){
            Alert.show("Loaded");
}

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/00003736.html