Flash Media Server Developer Documentation

NetConnection class

The NetConnection class lets you create a two-way connection between Flash Player and a Flash Media Server application. A NetConnection is like a pipe between the client and the server. Use the NetStream class to send data through the pipe.

Availability

Flash Communication Server 1.0; Flash Player 6.

Method summary

Method

Description

NetConnection.call()

Invokes a method defined on a Client object in Server-Side ActionScript.

NetConnection.close()

Closes the connection with the server.

NetConnection.connect()

Connects to an application on Flash Media Server.

Property summary

Property (read-only)

Description

NetConnection.isConnected

Read-only; a Boolean value that indicates whether Flash Player is connected to the server (true) or not (false) through the specified connection.

NetConnection.uri

Read-only; the target URI that was passed to NetConnection.connect().

Event handler summary

Event

Description

NetConnection.onStatus()

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