Macromedia flash media server 2-client-side actionscript language reference for flash media server 2 User Manual

Page of 156
Microphone class
49
Example
The following example displays 
true
 or 
false
 in the Output panel when the microphone 
starts or stops detecting sound.
var active_mic:Microphone = Microphone.get();
_root.attachAudio(active_mic);
active_mic.onActivity = function(mode){
trace(mode);
}
See also
Microphone.onStatus
Availability
Flash Player 6.
Flash Media Server (not required).
Usage
public onStatus = function(infoObject:Object) {}
Parameters
infoObject
  A parameter defined according to the status message. For more information 
about this parameter, see 
Returns
Nothing.
Description
Event handler; invoked when the user allows or denies access to the microphone. If you want 
to respond to this event handler, you must create a function to process the information object 
generated by the microphone. For more information, see 
.