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

NetConnection.getDebugId( ) Method > NetConnection.getDebugId( ) Method

Name

NetConnection.getDebugId( ) Method

Synopsis

                     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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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