Stream.clear; Stream.get - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

Stream.clear

Availability
Flash Communication Server MX.
Usage
Stream.clear()
Parameters
None.
Returns
A Boolean value of
Description
Method; deletes a stream that uses previously recorded by the server.
Example
This example deletes a recorded stream called
defines an
onStatus
NetStream.Clear.Success
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
The name of the stream instance to return.
name
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.
58
if the call succeeds,
true
handler that uses two information object error codes,
and
NetStream.Clear.Failure
otherwise.
false
. Before the stream is deleted, the example
foo
, to send status messages to the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents