mic_lbl.text = "["+active_mic.index+"] "+active_mic.name;
mic_cb.dataProvider = Microphone.names;
mic_cb.selectedIndex = active_mic.index;
var cbListener:Object = new Object();
cbListener.change = function(evt:Object) {
active_mic = Microphone.get(evt.target.selectedIndex);
sound_mc.attachAudio(active_mic);
mic_lbl.text = "["+active_mic.index+"] "+active_mic.name;
};
mic_cb.addEventListener("change", cbListener);
See also
Microphone.get(),
Microphone.muted
Availability
Flash Player 6.
Usage
active_mic.muted:Boolean
Description
Read-only property; a Boolean value that specifies whether the user has denied access to the
microphone (
true
is invoked. For more information, see
Example
This example gets the default microphone and checks whether it is muted.
var active_mic:Microphone = Microphone.get();
trace(active_mic.muted);
See also
Microphone.get(),
Microphone.name
Availability
Flash Player 6.
Usage
active_mic.name:String
Description
Read-only property; a string that specifies the name of the current sound capture device, as
returned by the sound capture hardware.
Microphone.names
) or allowed access (
false
Microphone.get()
Microphone.onStatus
). When this value changes,
.
Microphone.onStatus
Microphone.name
539
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?