MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 844

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

As the web services code executes and messages are sent to the Log object, the
of your Log object is called. This is the only place to put code that displays the log messages if you
want to see them in real time.
The following are examples of log messages:
7/30 15:22:43 [INFO] SOAP: Decoding PendingCall response
7/30 15:22:43 [DEBUG] SOAP: Decoding SOAP response envelope
7/30 15:22:43 [DEBUG] SOAP: Decoding SOAP response body
7/30 15:22:44 [INFO] SOAP: Decoded SOAP response into result [16 millis]
7/30 15:22:46 [INFO] SOAP: Received SOAP response from network [6469 millis]
7/30 15:22:46 [INFO] SOAP: Parsed SOAP response XML [15 millis]
7/30 15:22:46 [INFO] SOAP: Decoding PendingCall response
7/30 15:22:46 [DEBUG] SOAP: Decoding SOAP response envelope
7/30 15:22:46 [DEBUG] SOAP: Decoding SOAP response body
7/30 15:22:46 [INFO] SOAP: Decoded SOAP response into result [16 millis]
Log.onLog()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myWebSrvcLog.onLog = function(message)
Parameters
The log message passed to the handler.
message
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
(For information about the structure of the log, see
on page
842.)
Example
The following example creates a new Log object, passes it to a new WebService object, and
handles the log messages.
// 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)
{
844
Chapter 6: Components Dictionary
"Log class (Flash Professional only)"
function
onLog()
command.
trace

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents