Log.onLog()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

myWebSrvcLog.onLog = function(message)

Parameters

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.

Returns

Nothing.

Description

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.)

Example

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