Constructor For The Log Class - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Constructor for the Log class

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
myWebSrvcLog = new Log([logLevel] [, logName]);
Parameters
A level to indicate the category of information that you want to record in the log.
logLevel
Four log levels are available:
The log records primary life-cycle event and error notifications. This is the
Log.BRIEF
default value.
The log records all life-cycle event and error notifications.
Log.VERBOSE
The log records metrics and fine-grained events and errors.
Log.DEBUG
The log records nothing. Can be used to temporarily turn off
Log.NONE
events.
Optional name that is included with each log message. If you are using multiple
logName
Log objects, you can use the log name to determine which log recorded a given message.
Returns
Nothing.
Description
Constructor; creates a Log object. After you create the Log object, you can pass it to a web
service to get messages.
Example
You can call the
new Log
// Creates a new log object.
import mx.services.*;
myWebSrvcLog = new Log();
myWebSrvcLog.onLog = function(msg : String) : Void
{
myTrace(txt)
}
1416
Web service classes (Flash Professional only)
constructor to return a Log object to pass to your web service:
Log.onLog

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents