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);
Summary of Contents for FLEX
Page 1: ...Flex ActionScript Language Reference ...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Page 135: ...case 135 See also break default strict equality switch ...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Page 808: ...808 Chapter 7 ActionScript for Flash ...
Page 810: ...810 Appendix A Deprecated Flash 4 operators ...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Page 822: ...822 Index ...