Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > Web service classes > Log.onLog() | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myWebSrvcLog.onLog = function(message)
message The log message passed to the handler. For example:
"7/30 15:22:43 [INFO] SOAP: Decoding PendingCall response"
For more information about log messages, see Log class.
Nothing.
Callback function; called by Flash Player when a log message is sent to a log file. This function is a good place to put code that records or displays the log messages, such as a trace command. (For information about the structure of the log, see Log class.)
The following example creates a new Log object, passes it to a new WebService object, and handles the log messages:
import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log();
// Passes the Log object to the web service.
myWebService = new WebService(wsdlURI, myWebSrvcLog);
// Handles incoming log messages.
myWebSrvcLog.onLog = function(message : String) : Void
{
mytrace("myWebSrvcLog.message: " + message);
}
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/00003707.html