Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > NetStream | |||
Object
|
+-NetStream
public dynamic class NetStream
extends Object
The NetStream class provides methods and properties for playing Flash Video (FLV) files from the local file system or an HTTP address. You use a NetStream object to stream video through a NetConnection object. Playing external FLV files provides several advantages over embedding video in a Flash document, such as better performance and memory management, and independent video and Flash frame rates. This class provides a number of methods and properties you can use to track the progress of the file as it loads and plays, and to give the user control over playback (stopping, pausing, and so on).
Availability: ActionScript 1.0; Flash Player 7
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
bufferLength |
The number of seconds of data currently in the buffer. |
|
|
bufferTime |
The number of seconds assigned to the buffer by |
|
|
bytesLoaded |
The number of bytes of data that have been loaded into the player. |
|
|
bytesTotal |
The total size in bytes of the file being loaded into the player. |
|
|
currentFps |
The number of frames per second being displayed. |
|
|
time |
The position of the playhead, in seconds. |
Properties inherited from class Object
|
Event |
Description |
|---|---|
|
onCuePoint |
Invoked when an embedded cue point is reached while playing an FLV file. |
|
onMetaData |
Invoked when the Flash Player receives descriptive information embedded in the FLV file being played. |
|
onStatus |
Invoked every time a status change or error is posted for the NetStream object. |
|
Signature |
Description |
|---|---|
|
NetStream |
Creates a stream that can be used for playing FLV files through the specified NetConnection object. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
close |
Stops playing all data on the stream, sets the |
|
|
pause |
Pauses or resumes playback of a stream. |
|
|
play |
Begins playback of an external video (FLV) file. |
|
|
seek |
Seeks the keyframe closest to the specified number of seconds from the beginning of the stream. |
|
|
setBufferTime |
Specifies how long to buffer messages before starting to display the stream. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002553.html
Comments
mzscott said on Sep 23, 2005 at 10:01 AM : No screen name said on Oct 2, 2005 at 7:27 AM :