View comments | RSS feed

NetConnection.connect()

Availability

Usage

Parameters

targetURI  For example, the following URIs are formatted correctly:

Returns

Description

Example

The following example opens a connection to play the video2.flv file. Select New Video from the Library options menu to create a new Video object, and give it the instance name my_video.

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("video2.flv");

See also

NetConnection.close(), NetConnection.onStatus


Comments


Greg_Hamer said on Jan 11, 2006 at 6:23 PM :
This page is incomplete. It is missing content under the following 3 headings: Usage, Returns, Description.

Also content under heading "Parameters" is incomplete. I.e. where are the URIs that should follow the line "the following URIs are formatted correctly:"?

Compare to prior version's documentation at:
livedocs.macromedia.com/flashcom/mx2004/main/00000371.html

fyi ... the method this page documents is pretty darned important. If you can't "connect()" then you won't be using the server ;-)
MotionMaker said on Mar 25, 2006 at 9:29 AM :
This example appears to be for progressive flv and not FMS.
Craig Grummitt said on Jul 5, 2006 at 11:13 PM :
this page and all NetConnection documentation pages appear to be incomplete. However, documentation for this class is available in the PDF flashmediaserver_cs_asd.pdf.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/fms/2/docs/00000573.html