NetStream
967
Method summary
Methods inherited from class Object
bufferLength (NetStream.bufferLength property)
public bufferLength : Number [read-only]
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.
Availability:
ActionScript 1.0; Flash Player 7 - Note: This property is also supported in Flash
Player 6 when used with Flash Communication Server. For more information, see the Flash
Communication Server documentation.
Example
The following example dynamically creates a text field that displays information about the
number of seconds that are currently in the buffer. The text field also displays the buffer
length that the video is set to, and percentage of buffer that is filled.
Modifiers
Signature
Description
close
() : Void
Stops playing all data on the stream, sets the
NetStream.time
property to 0, and makes the stream
available for another use.
pause
([flag:Boolean]
) : Void
Pauses or resumes playback of a stream.
play
(name:Object,
start:Number,
len:Number,
reset:Object) : Void
Begins playback of an external video (FLV) file.
seek
(offset:Number)
: Void
Seeks the keyframe closest to the specified number of
seconds from the beginning of the stream.
setBufferTime
(buffer
Time:Number) : Void
Specifies how long to buffer messages before starting
to display the stream.
addProperty (Object.addProperty method)
,
hasOwnProperty
(Object.hasOwnProperty method)
,
isPropertyEnumerable
(Object.isPropertyEnumerable method)
,
isPrototypeOf (Object.isPrototypeOf
method)
,
registerClass (Object.registerClass method)
,
toString
(Object.toString method)
,
unwatch (Object.unwatch method)
,
valueOf
(Object.valueOf method)
,
watch (Object.watch method)
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...