User Guide

978 ActionScript classes
ns.play("http://www.helpexamples.com/flash/video/water.flv");
This causes the following information to be displayed:
canSeekToEnd = true
videocodecid = 4
framerate = 15
videodatarate = 400
height = 215
width = 320
duration = 7.347
The list of properties will vary depending on the software that was used to encode the FLV
file.
See also
time (NetStream.time property), play (NetStream.play method), NetConnection
onStatus (NetStream.onStatus handler)
onStatus = function(infoObject:Object) {}
Invoked every time a status change or error is posted for the NetStream object. If you want to
respond to this event handler, you must create a function to process the information object.
The information object has a code property containing a string that describes the result of the
onStatus handler, and a level property containing a string that is either status or error.
In addition to this onStatus handler, Flash also provides a "super" function called
System.onStatus. If onStatus is invoked for a particular object and there is no function
assigned to respond to it, Flash processes a function assigned to
System.onStatus if it exists.
The following events notify you when certain NetStream activities occur.
Code property Level property Meaning
NetStream.Buffer.Empt
y
status Data is not being received quickly enough
to fill the buffer. Data flow will be interrupted
until the buffer refills, at which time a
NetStream.Buffer.Full message will be sent
and the stream will begin playing again.
NetStream.Buffer.Full status The buffer is full and the stream will begin
playing.
NetStream.Buffer.Flus
h
status Data has finished streaming, and the
remaining buffer will be emptied.
NetStream.Play.Start status Playback has started.