User Guide

150 Server-Side ActionScript Language Reference
Stream.name
Availability
Flash Communication Server MX 1.0.
Usage
myStream.name
Description
Property (read-only); contains a unique string associated with a live stream.
You can also use this as an index to find a stream within an application.
Example
The following function, getStreamName, takes a stream reference as an argument, myStream,
and returns the name of the stream associated with it:
function getStreamName (myStream) {
return myStream.name;
}
Stream.onStatus
Availability
Flash Communication Server MX 1.0.
Usage
myStream.onStatus = function([infoObject]) {}
Parameters
infoObject An optional parameter that is defined according to the status message. For more
information about this parameter, see “Server-Side Information Objects” on page 229.
Returns
Nothing.
Description
Event handler; invoked every time the status of a Stream object changes. For example, if you
play a file in a stream,
Stream.onStatus is invoked. Use Stream.onStatus to check when
play starts and ends, when recording starts, and so on.