// Publish the microphone data by calling
// the root function pubLive().
_root.pubLive();
// Play what is being published by calling
// the root function playLive().
_root.playLive();
}
}
See also
Microphone.get()
Microphone.name
Availability
Flash Player 6.
Usage
activeMicrophone.name
Description
Read-only property; a string that specifies the name of the current sound capture device, as
returned by the sound capture hardware.
Example
The following example displays the name of the default microphone in the Output panel.
myMic = Microphone.get();
trace("The microphone name is: " + myMic.name);
See also
Microphone.get()
Microphone.names
Availability
Flash Player 6.
Usage
Microphone.names
Note: The correct syntax is
mic_array = Microphone.names
activeMicrophone.name
Description
Read-only class property; retrieves an array of strings reflecting the names of all available sound
capture devices without displaying the Flash Player Privacy Settings panel. This array behaves the
same as any other ActionScript array, implicitly providing the zero-based index of each sound
capture device and the number of sound capture devices on the system (by means of
Microphone.names.length
,
Microphone.onStatus
,
Microphone.names
Microphone.names
. To determine the name of the current microphone, use
.
). For more information, see the
. To assign the return value to a variable, use syntax like
Array class
entry.
Microphone.names
467
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers