
54
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” on page 54.
Method summary for the NetConnection object
Event handler summary for the NetConnection object
Constructor for the NetConnection object
Availability
• Flash Player 6.
• Flash Communication Server MX.
Usage
new NetConnection()
Parameters
None.
Returns
A 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.
Method Description
NetConnection.onStatus Invoked when a status change or error is posted for the
NetConnection object.
Commenti su questo manuale