Server-Side Communication ActionScript > Stream.clear |
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 recorded stream file (FLV) from the server.
Example
This example deletes a recorded stream called foo.flv. Before the stream is deleted, the example defines an onStatus handler that uses two information object error codes, NetStream.Clear.Success and NetStream.Clear.Failed, 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("Stream cleared successfully.");
}
if(info.code == "NetStream.Clear.Failed"){
trace("Failed to clear stream.");
}
};
s.clear();
}
Note: The Stream information object is nearly identical to the client-side ActionScript NetStream information object. For more information, see the Server-Side Information Objects.
See also