EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 558

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
558 Chapter 12: ActionScript Dictionary
Constructor for the NetStream class
Availability
Flash Player 7.
Note: This class is also supported in Flash Player 6 when used with Flash Communication Server.
For more information, see your Flash Communication Server documentation.
Usage
new NetStream(my_nc)
Parameters
my_nc
A NetConnection object.
Returns
Nothing.
Description
Constructor; creates a stream that can be used for playing FLV files through the specified
NetConnection object.
Example
The following code first constructs a new NetConnection object, my_nc, and uses it to construct
a new NetStream object called
videoStream_ns.
my_nc = new NetConnection();
my_nc.connect(null);
videoStream_ns = new NetStream(my_nc);
See also
NetConnection class, NetStream class, Video.attachVideo()
NetStream.bufferLength
Availability
Flash Player 7.
Note: This property is also supported in Flash Player 6 when used with Flash Communication Server.
For more information, see your Flash Communication Server documentation.
Usage
my_ns.bufferLength
Description
Read-only property; the number of seconds of data currently in the buffer. You can use this
property in conjunction with
NetStream.bufferTime to estimate how close the buffer is to being
full—for example, to display feedback to a user who is waiting for data to be loaded into
the buffer.
See also
NetStream.bytesLoaded

Table of Contents

Related product manuals