It is highly recommended that you call
Synchronization problems can occur if you call the
contains data and either audio, video, or both.
Example
The following example flushes the
// 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
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.
Examples
The following example gets the stream
calls the
Stream.play
function onProcessCmd(cmd){
var playStream = Stream.get("foo");
playStream.play("file1", 0, -1);
}
See also
Stream.clear()
148
Server-Side ActionScript Language Reference
flush()
myStream
and assigns it to the variable
foo
method from
playStream
on a stream that contains only data.
method on a stream that
flush()
stream:
.
. It then
playStream
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?