EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Page 979

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NetStream 979
If you consistently see errors regarding buffer, you should try changing the buffer using the
NetStream.setBufferTime() method.
Availability: ActionScript 1.0; Flash Player 6
Parameters
infoObject:Object - A parameter defined according to the status message or error message.
Example
The following example displays data about the stream in the Output panel:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
stream_ns.play("video1.flv");
stream_ns.onStatus = function(infoObject:Object) {
trace("NetStream.onStatus called: ("+getTimer()+" ms)");
for (var prop in infoObject) {
trace("\t"+prop+":\t"+infoObject[prop]);
}
trace("");
};
See also
setBufferTime (NetStream.setBufferTime method), onStatus (System.onStatus
handler)
NetStream.Play.Stop status Playback has stopped.
NetStream.Play.Stream
NotFound
error The FLV passed to the play() method can't
be found.
NetStream.Seek.Invali
dTime
error For video downloaded with progressive
download, the user has tried to seek or play
past the end of the video data that has
downloaded thus far, or past the end of the
video once the entire file has downloaded.
The
message.details property contains a
time code that indicates the last valid
position to which the user can seek.
NetStream.Seek.Notify status The seek operation is complete.
Code property Level property Meaning

Table of Contents

Related product manuals