
44
Example
In the following example, when the user clicks the button, Flash publishes and plays a live stream
if the microphone is not muted.
on (press)
{
// If the user mutes microphone, display offline notice.
// Else, publish and play live stream from microphone.
if(myMic.muted) {
_root.debugWindow+="Microphone offline." + newline;
} else {
// 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.onStatus
Microphone.name
Availability
• Flash Player 6.
• Flash Communication Server MX (not required).
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 window.
myMic = Microphone.get();
trace("The microphone name is: " + myMic.name);
See also
Microphone.get, Microphone.names
Comentarios a estos manuales