User Guide

1418 Web service classes (Flash Professional only)
Example
The following example creates a new Log object, passes it to a new WebService object, and
handles the log messages, using
Log.getDateString() to get the time of the log.
import mx.services.*;
// Creates a new Log object.
myWebSrvcLog = new Log(Log.BRIEF, "myLog");
// Passes the Log object to the web service.
myWebService = new WebService(wsdlURI, myWebSrvcLog);
// Handles incoming log messages.
myWebSrvcLog.onLog = function(message : String) : Void
{
trace("A Log Event Occurred At This Time: "+ this.getDateString());
}
Log.logInfo()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myWebSrvcLog.logInfo(myMessageString)
Parameters
msg A message of type String that you want to appear in the resulting log event message.
level A level to indicate the category of information that you want to record in the log.
Four log levels are available:
Log.BRIEF The log records primary life-cycle event and error notifications. This is the
default value.
Log.VERBOSE The log records all life-cycle event and error notifications.
Log.DEBUG The log records metrics and fine-grained events and errors.
Log.NONE The log records nothing. Can be used to temporarily turn off Log.onLog
events.
Returns
Nothing.