1
<sect4 id="asnetconnection">
2
<title>NetConnection ActionScript Class</title>
5
This class implements an NetConnection object. The NetConnection
6
object opens a client connection to load an FLV video file from a
7
local system, or a remote one using the RTMP or RTMPT protocols.
8
RTMP connections use port 1935, and RTMPT connections use port 80.
12
This class was first introduced for swf v7 and the behavior has
13
recently changed slightly to allow the loading of files from
14
external systems. Prior to this, you were required to pass NULL to
15
this class. Gnash handles both cases. The older behavior is default
16
when connecting to the local filesystem for the file.
20
The URL that can be passed to <emphasis>connect()</emphasis> in newer
21
versions of the swf format is as follows:
23
protocol:[//host][:port]/appname/[instanceName]
25
For protocol, specify either <emphasis>RTMP</emphasis> or
26
<emphasis>RTMPT</emphasis>. If rtmp is specified, SWF Player will create
27
a client connection. If <emphasis>RTMPT</emphasis> is specified, SWF
28
Player will create an HTTP "tunneling" connection to the server.
32
You can omit the host parameter if the SWF movie is served from
33
localhost. If the instanceName parameter is omitted, SWF Player
34
connects to the application's default instance (_definst_).
37
<sect5 id="netconnectionmethods">
38
<title>The Methods of the Class</title>
41
<varlistentry>the same host where Flash Communication Server is installed
42
<term>NetConnection.connect(const char *)</term>
45
Connect to a local or remote system to load a
46
FLV file. Arg can be NULL, or a URL.
54
<sect5 id="netconnectionprops">
55
<title>The Properties of the NetConnection Class</title>
65
<sect5 id="netconnectionconf">
66
<title>NetConnection Class Conformance</title>
68
<informaltable frame="all">
69
<?dbhtml table-width="75%" ?>
74
<para>Class Name</para>
77
<para>Conformance</para>
83
<entry valign="top" align="left">
84
<para>NetConnection.connect()</para>
86
<entry valign="top" align="center">
88
This method is partially implemented. It can only be
89
used in conjunction with the <link
90
linkend="asnetstream">NetStream</link> and <link
91
linkend="asvideo">Video</link> classes; it cannot
92
load a FLV file by itself.