470
Chapter 12: ActionScript Dictionary
Microphone.rate
Availability
Flash Player 6.
Usage
activeMicrophone
.rate
Description
Read-only property; the rate at which the microphone is capturing sound, in kHz. The default
value is 8 kHz if your sound capture device supports this value. Otherwise, the default value is the
next available capture level above 8 kHz that your sound capture device supports, usually 11 kHz.
To set this value, use
Microphone.setRate()
.
Example
The following example saves the current rate to the variable
original
.
original = myMic.rate;
See also
Microphone.setRate()
Microphone.setGain()
Availability
Flash Player 6.
Usage
activeMicrophone
.setGain(
gain
)
Parameters
gain
An integer that specifies the amount by which the microphone should boost the signal.
Valid values are 0 to 100. The default value is 50; however, the user may change this value in the
Flash Player Microphone Settings panel.
Returns
Nothing.
Description
Method; sets the microphone gain—that is, the amount by which the microphone should
multiply the signal before transmitting it. A value of 0 tells Flash to multiply by 0; that is, the
microphone transmits no sound.
You can think of this setting like a volume knob on a stereo: 0 is no volume and 50 is normal
volume; numbers below 50 specify lower than normal volume, while numbers above 50 specify
higher than normal volume.
Example
The following example ensures that the microphone gain setting is less than or equal to 55.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...