NetConnection�(object)

The NetConnection object manages a bidirectional connection between the Flash Player and the Flash Remoting service. The NetServices methods use the NetConnection object to call functions on and return results from application servers.

You normally create a NetConnection object by calling the NetServices.createGatewayConnection method. You can also create a NetConnection object directly as described in "Constructor for NetConnection" on page 145.

Method summary for the NetConnection object
Method
Description
NetConnection.addHeader
Adds a context header to the Action Message Format (AMF) packet structure.
NetConnection.call
Invokes a command or method on the server.
NetConnection.close
Closes the connection with the application server.
NetConnection.connect
Connects to the gateway on the application server.
NetConnection.getDebugConfig
Retrieves the NetConnection object's debug subscribed events NetDebugConfig object.
NetConnection.getDebugID
Retrieves the NetConnection object's debugging identifier.
NetConnection.getService
Creates a Flash Remoting service object.
NetConnection.setCredentials
Sends authorization credentials to Flash Remoting MX.
NetConnection.setDebugID
Sets a debug identifier for a NetConnection object.
NetConnection.trace
Sends a client trace message associated with the NetConnection to the NetConnection Debugger.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/asDict8.htm