NetConnection.getDebugId( )

NetConnection.getDebugId( ) MethodFlash 6

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


The identifier for the NetDebugConfig object.


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


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

#include ""
#include ""
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