NetConnection.getDebugId( ) Method | Flash 6 |
retrieves a NetDebugConfig object's identifier |
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 "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.
NetConnection.setDebugId( ), NetDebugConfig; Chapter 13