Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Web service classes > WebService.onLoad | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myService.onLoad = function(wsdlDocument){ // Your code here. }
wsdlDocument The WSDL XML document.
Nothing.
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.
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