NetStream.onStatus
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
public onStatus = function(infoObject:Object) {}
Parameters
A parameter defined according to the status or error message. For more
infoObject
information about this parameter, see
Returns
Nothing.
Description
Event handler; 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 sent by the server. For more information, see
Objects" on page
149.
In addition to this
NetStream.onStatus
. If
System.onStatus
function assigned to respond to it, Flash processes a function assigned to
it exists.
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("");
};
"NetStream information objects" on page
handler, Flash also provides a super function called
NetStream.onStatus
"Client-Side Information
is invoked for a particular object and there is no
153.
if
System.onStatus
NetStream class
95
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?
Questions and answers