Bufferlength (Netstream.bufferlength Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Method summary
Modifiers
Signature
close() : Void
pause([flag:Boolean]
) : Void
play(name:Object,
start:Number,
len:Number,
reset:Object) : Void
seek(offset:Number)
: Void
setBufferTime(buffer
Time:Number) : Void
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

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
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.
Description
Stops playing all data on the stream, sets the
NetStream.time property to 0, and makes the stream
available for another use.
Pauses or resumes playback of a stream.
Begins playback of an external video (FLV) file.
Seeks the keyframe closest to the specified number of
seconds from the beginning of the stream.
Specifies how long to buffer messages before starting
to display the stream.
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
to estimate how close the buffer is to being full--
toString
valueOf
NetStream
967

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF