Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > NetConnection class > NetConnection.connect() | |||
targetURI For example, the following URIs are formatted correctly:
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");
NetConnection.close(), NetConnection.onStatus
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
Comments
Greg_Hamer said on Jan 11, 2006 at 6:23 PM : MotionMaker said on Mar 25, 2006 at 9:29 AM : Craig Grummitt said on Jul 5, 2006 at 11:13 PM :