User Guide
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.setSilenceLevel()
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 “Microphone information objects” on page 151.
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 Appendix A, “Client-Side
Information Objects,” on page 149.