User Guide
148 Server-Side ActionScript Language Reference
It is highly recommended that you call flush() on a stream that contains only data.
Synchronization problems can occur if you call the
flush() method on a stream that
contains data and either audio, video, or both.
Example
The following example flushes the myStream stream:
// Setup the server stream
application.myStream = Stream.get("foo");
if (application.myStream){
application.myStream.record();
application.myStream.send("test", "hello world");
application.myStream.flush();
}
Stream.get()
Availability
Flash Communication Server MX 1.0.
Usage
myStream.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.
Examples
The following example gets the stream foo and assigns it to the variable playStream. It then
calls the
Stream.play method from playStream.
function onProcessCmd(cmd){
var playStream = Stream.get("foo");
playStream.play("file1", 0, -1);
}
See also
Stream.clear()