EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 474

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
474 Chapter 12: ActionScript Dictionary
Example
The following example turns on echo suppression.
my_mic.setUseEchoSuppression(true);
See also
Microphone.setGain()
, Microphone.useEchoSuppression()
Microphone.silenceLevel()
Availability
Flash Player 6.
Usage
activeMicrophone.silenceLevel
Description
Read-only property; an integer that specifies the amount of sound required to activate the
microphone and invoke
Microphone.onActivity(true). The default value is 10.
Example
See the example for Microphone.silenceTimeout().
See also
Microphone.gain
, Microphone.setSilenceLevel()
Microphone.silenceTimeout()
Availability
Flash Player 6.
Usage
activeMicrophone.silenceTimeout
Description
Read-only property; a numeric value representing the number of milliseconds between the time
the microphone stops detecting sound and the time
Microphone.onActivity(false) is
invoked. The default value is 2000 (2 seconds).
To set this value, use
Microphone.setSilenceLevel().
Example
The following example sets the timeout to two times its current value.
myMic.setSilenceLevel(myMic.silenceLevel, myMic.silenceTimeOut * 2);
See also
Microphone.setSilenceLevel()

Table of Contents

Related product manuals