Stream.onStatus

Availability

Flash Communication Server MX.

Usage

myStream.onStatus = function([infoObject]) {
   // Insert code here
};

Parameters

infoObject An optional parameter defined according to the status message. For details about this parameter, see Server-Side Information Objects.

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.

Example

This example defines a function that executes whenever the Stream.onStatus event is invoked:

s = Stream.get("foo");
s.onStatus = function(info){
      // insert code here
};

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flashcom/mx2004/main/00000510.html