User Guide

NetStream.time 661
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
The number of seconds of data to be buffered before Flash begins displaying
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 to 15; Flash begins playing the stream only after 15 seconds of data
are buffered.
Example
See the example for NetStream.bufferLength.
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. Create a new video object called my_video. Add the following ActionScript
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);