
Client-Side Communication ActionScript 39
Event handler summary for the Microphone object
Constructor for the Microphone object
See
Microphone.get.
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
Microphone.setGain
Microphone.silenceLevel The amount of sound required to activate the microphone.
Microphone.silenceTimeout The number of milliseconds between the time the microphone stops
detecting sound and the time Microphone.onActivity(false)
is called.
Microphone.useEchoSuppression A Boolean value that specifies whether echo suppression is
being used.
Method Description
Microphone.onActivity Invoked when the microphone starts or stops detecting sound.
Microphone.onStatus Invoked when the user allows or denies access to the microphone.
Property (read-only) Description
Komentarze do niniejszej Instrukcji