NetStream.setBufferTime()
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_ns.setBufferTime(numberOfSeconds:Number) : Void
Parameters
numberOfSeconds
data. The default value is 0.1 (one-tenth of a second).
Description
Method; specifies how long to buffer messages before starting to display the stream. For example,
if you want to make sure that the first 15 seconds of the stream play without interruption,
set
numberOfSeconds
are buffered.
Example
See the example for
See also
NetStream.bufferTime
NetStream.time
Availability
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.
Usage
my_ns.time:Number
Description
Read-only property; the position of the playhead, in seconds.
Example
The following example displays the current position of the playhead in a dynamically created text
field called
time_txt
to your FLA or AS file:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
The number of seconds of data to be buffered before Flash begins displaying
to 15; Flash begins playing the stream only after 15 seconds of data
NetStream.bufferLength
. Create a new video object called my_video. Add the following ActionScript
.
NetStream.time
661
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?