Server-Side Communication ActionScript > NetConnection (object)

 

NetConnection (object)

The server-side NetConnection object lets you create a two-way connection between a Flash Communication Server application instance and an application server, another Flash Communication Server, or another Flash Communication Server application instance on the same server. You can use NetConnection objects to create powerful applications; for example, you can get weather information from an application server or share an application load with other Flash Communication Servers or application instances.

You can use Macromedia Flash Remoting with the Flash Communication Server to communicate with application servers such as Macromedia ColdFusion MX, Macromedia JRun, Microsoft .NET, and J2EE servers using Action Message Format (AMF) over HTTP. AMF lets you transfer light-weight binary data between a Flash Communication Server or a Flash client and a web application server. For more information, see www.macromedia.com/go/flashremoting.

You can also connect to an application server for server-to-server interactions using standard protocols (such as HTTP) or connect to another Flash Communication Server for sharing audio, video, and data using the Macromedia Real-Time Messaging Protocol (RTMP).

To create a NetConnection object, use the constructor function described below.