• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

NetConnection.getDebugConfig( ) Method > NetConnection.getDebugConfig( ) Method

Name

NetConnection.getDebugConfig( ) Method

Synopsis

                     myNetConnectionObject.getDebugConfig( )

Returns

A NetDebugConfig object containing the currently subscribed events.

Description

The getDebugConfig( ) method is used to programmatically retrieve the currently subscribed events for the NetConnection Debugger panel.

Example

The following code shows the basic syntax of the getDebugConfig( ) method and how it might be used:

#include "NetDebug.as"
#include "NetServices.as"
NetServices.setDefaultGatewayURL("http://localhost/flashservices/gateway");
var my_conn = NetServices.createGatewayConnection( );
var my_service = my_conn.getService("myService", this);
my_conn.trace("Service Object created.");

function onStatus (error) {
  // Show error message
  trace(error.description);
  // Get the NetDebugConfig object
  var debugConfig = my_conn.getDebugConfig( );
  // Iterate through the properties of the NetDebugObject
  for (i in debugConfig) {
    trace (i + ":" + debugConfig[i]);
    // If the property is an object itself, iterate through its properties
    for (j in debugConfig[i]) trace ("   " + j + ":" + debugConfig[i][j]);
  }
}

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint