
97
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Property summary
Method summary
Event handler summary
NetConnection constructor
new NetConnection()
Creates a new instance of the NetConnection class.
Availability
Flash Communication Server 1.
Returns
A NetConnection object.
Example
The following example creates a new instance of the NetConnection class:
Property Description
NetConnection.farID Read-only. A String indetifying the RTMFP identify of the Adobe Media Server instance to which
this Adobe MediaAdobe Media Server Instance is connected.
NetConnection.farNonce Read-only. A String unique to this connection. This value appears to another server as its
NetConnection.nearNonce value.
NetConnection.isConnected Read-only; a boolean value indicating whether a connection has been made.
NetConnection.nearID Read-only. A String indentifier of this Flash Player or Adobe AIR instance for this NetConnection
instance.
NetConnection.nearNonce Read-only. A String unique to this connection. This value appears to another server as its
NetConnection.farNonce value.
NetConnection.objectEncoding The Action Message Format (AMF) version used to pass binary data between two servers.
NetConnection.rtmfpBindAddress
es
An Array of Strings representing the specific address or addresses that the NetConnection binds
locally when it opens its RTMFP protocol stack.
NetConnection.rtmfpEndpointNam
e
The endpoint name for the local RTMFP protocol stack.
NetConnection.uri Read-only; a string indicating the URI parameter of the NetConnection.connect() method.
Method Description
NetConnection.addHeader() Adds a context header to the Action Message Format (AMF) packet structure.
NetConnection.call() Invokes a command or method on another Adobe Media Server or an application server to which
the application instance is connected.
NetConnection.close() Closes the connection with the server.
NetConnection.connect() Connects to another Adobe Media Server or to a Flash Remoting server such as Adobe ColdFusion.
Event handler Description
NetConnection.onStatus() Invoked every time the status of the NetConnection object changes.
Comentarios a estos manuales