MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 107

Server-side actionscript language reference
Table of Contents

Advertisement

Example
The following code closes the NetConnection instance
:
myNetConn
myNetConn.close();
NetConnection.connect()
Availability
Flash Communication Server MX 1.0.
Usage
myNetConnection.connect(URI, [p1, ..., pN])
Parameters
A URI to connect to.
URI
Optional parameters that can be of any ActionScript type, including
p1, ..., pN
references to other ActionScript objects. These parameters are sent as connection parameters
to the
event handler for RTMP connections. For AMF
application.onConnect
connections to application servers, any RTMP parameters are ignored.
Returns
For RTMP connections, a Boolean value of
for success;
otherwise. For AMF
true
false
connections to application servers,
is always returned.
true
Description
Method; connects to an application server or another Flash Media Server. The host URI has
the following format:
[protocol://]host[:port]/appName[/instanceName]
The following example shows legal URIs:
http://appServer.mydomain.com/webApp
rtmp://rtserver.mydomain.com/realtimeApp
rtmps://rtserver.mydomain.com/secureApp
You can use the
method to connect to an application server for
NetConnection.connect()
server-to-server interactions using standard protocols (such as HTTP) or connect to another
Flash Media Server for sharing audio, video, and data using the Macromedia Real-Time
Messaging Protocol format (RTMP) or SSL (RTMPS). SSL in Flash Media Server uses a
third-party open source library called OpenSSL.
NetConnection class
107

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents