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 Description Invokes a command or method on the server. Closes the connection with the server. Connects to an application on the Flash Communication Server.
Method summary for the NetConnection object
Property (read-only) Description A Boolean value that indicates whether the Flash Player is connected to the server ( The target URI that was passed in with
Property summary for the NetConnection object
true
) or not (false
) through the specified connection.
NetConnection.connect
.
Method Description Invoked when a status change or error is posted for the NetConnection object.
Event handler summary for the NetConnection object
![]() ![]() ![]() |