name (Microphone.name property)

public name : String [read-only]

A string that specifies the name of the current sound capture device, as returned by the sound capture hardware.

Availability: ActionScript 1.0; Flash Player 6

Example

The following example displays information about the sound capturing device(s) on your computer system, including an array of names and the default device.

var status_ta:mx.controls.TextArea;
status_ta.html = false;
status_ta.setStyle("fontSize", 9);
var microphone_array:Array = Microphone.names;
var active_mic:Microphone = Microphone.get();
status_ta.text = "The default device is: "+active_mic.name+newline+newline;
status_ta.text += "You have "+microphone_array.length+" device(s) installed."+newline+newline;
for (var i = 0; i<microphone_array.length; i++) {
    status_ta.text += "["+i+"] "+microphone_array[i]+newline;
}

See also

get (Microphone.get method), names (Microphone.names property)