Server-Side Communication ActionScript > 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