NetConnection.getDebugId( )


NetConnection.getDebugId( ) Method Flash 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



Flash Remoting
Flash Remoting: The Definitive Guide
ISBN: 059600401X
EAN: 2147483647
Year: 2003
Pages: 239
Authors: Tom Muck

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net