
Server-Side Communication ActionScript 67
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 77.
See also
Stream.get
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.
Examples
This 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
Stream.length
Availability
Flash Communication Server MX.
Usage
Stream.length(name)
Parameters
name Name of a recorded stream (FLV) file or MP3 file. To get the length of an MP3 file,
precede the name of the file with
mp3: (for example, "mp3:beethoven").
Returns
The length of a recorded stream file or MP3 file in seconds.
Description
Method (static); returns the length of a recorded stream file or MP3 file in seconds. If the
requested file is not found, the return value is 0.
Comentarios a estos manuales