
58
Stream.clear
Availability
Flash Communication Server MX.
Usage
Stream.clear()
Parameters
None.
Returns
A Boolean value of true if the call succeeds, false otherwise.
Description
Method; deletes a stream that uses previously recorded by the server.
Example
This example deletes a recorded stream called foo. Before the stream is deleted, the example
defines an
onStatus handler that uses two information object error codes,
NetStream.Clear.Success and NetStream.Clear.Failure, to send status messages to the
Output window.
s = Stream.get("foo");
if (s){
s.onStatus = function(info){
if(info.code == "NetStream.Clear.Success"){
trace(info.description);
}
if(info.code == "NetStream.Clear.Failure"){
trace(info.description);
}
};
s.clear();
}
Note: The Stream information object is nearly identical to the client-side ActionScript NetStream information
object. For more information, see the Appendix, “Server-Side Information Objects,” on page 67.
Stream.get
Availability
Flash Communication Server MX.
Usage
Stream.get(name)
Parameters
name The name of the stream instance to return.
Returns
A reference to a stream instance.
Description
Method (static); returns a reference to a Stream object. If the requested object is not found, a new
instance is created.
Komentarze do niniejszej Instrukcji