NetConnection.getDebugId( )

NetConnection.getDebugId( ) MethodFlash 6

retrieves a NetDebugConfig object's identifier
myNetConnectionObject.getDebugId( )

Returns

The identifier for the NetDebugConfig object.

Description

Each NetDebugConfig object has an associated ID, which is typically a sequential integer. However, you can set the identifier with NetConnection.setDebugId( ).

Example

The following code shows the basic syntax of the getDebugId( ) method:

#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);
trace(my_conn.getDebugId( ));

In this case, the NetDebugConfig object identifier is simply traced to the Output window.

See Also

NetConnection.setDebugId( ), NetDebugConfig; Chapter 13



    Part III: Advanced Flash Remoting