Client-Side Communication ActionScript > NetConnection (object)

 

NetConnection (object)

Availability

Flash Player 6.

Flash Communication Server MX.

The NetConnection object manages a bidirectional connection between the Flash Player and a server, which lets you connect to Flash Remoting or to the Flash Communication Server. The Flash Communication Server enables you to share audio, video, and data using the Macromedia Real-Time Messaging Protocol (RTMP).

For information on using Flash with an application server, see Using Flash Remoting. For information on using Flash with Flash Communication Server, see the following entries in addition to NetConnection:

NetStream (object)—for any RTMP communication

Camera (object)—for capturing and transmitting video

Microphone (object)—for capturing and transmitting audio

SharedObject (object)—for sharing data

Camera (object)—for displaying video

For information on creating a NetConnection object, see Constructor for the NetConnection object.

 
Method summary for the NetConnection object

Method

Description

NetConnection.call

Invokes a command or method on the server.

NetConnection.close

Closes the connection with the server.

NetConnection.connect

Connects to an application on the Flash Communication Server.


 
Property summary for the NetConnection object

Property (read-only)

Description

NetConnection.isConnected

A Boolean value that indicates whether the Flash Player is connected to the server (true) or not (false) through the specified connection.

NetConnection.uri

The target URI that was passed in with NetConnection.connect.


 
Event handler summary for the NetConnection object

Method

Description

NetConnection.onStatus

Invoked when a status change or error is posted for the NetConnection object.