MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 648

Actionscript language reference
Table of Contents

Advertisement

NetConnection.connect()
Availability
Flash Player 7.
Note: This method is also supported in Flash Player 6 when used with Flash Communication Server.
For more information, see the Flash Communication Server documentation.
Usage
my_nc.connect(null) : Void
Parameters
None (you must pass
Returns
Nothing.
Description
Constructor; opens a local connection through which you can play back video (FLV) files from an
HTTP address or from the local file system.
Example
The following example opens a connection to play the video2.flv file. Select New Video from the
Library panel's 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
NetStream class
648
Chapter 7: ActionScript for Flash
).
null

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents