Client-Side Communication ActionScript > Microphone.activityLevel |
![]() ![]() ![]() |
Microphone.activityLevel
Availability
![]() |
Flash Player 6. |
![]() |
Flash Communication Server MX (not required). |
Usage
activeMicrophone
.activityLevel
Description
Read-only property; a numeric value that specifies the amount of sound the microphone is detecting. Values range from 0 (no sound is being detected) to 100 (very loud sound is being detected). The value of this property can help you determine a good value to pass to Microphone.setSilenceLevel
.
If the microphone is available but is not yet being used because neither MovieClip.attachAudio
nor NetStream.attachAudio
has been called, this property is set to -1.
Example
The following examples sets the variable level
to the activity level of the current microphone, myMic.activityLevel
.
var level = myMic.activityLevel;
See also
![]() ![]() ![]() |