MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 466

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Example
The following example lets the user specify the default microphone, then captures audio and plays
it back locally. To avoid feedback, you may want to test this code while wearing headphones.
System.showSettings(2);
myMic = Microphone.get();
_root.attachAudio(myMic);
See also
Microphone.index
MovieClip.attachAudio()
Microphone.index
Availability
Flash Player 6.
Usage
activeMicrophone.index
Description
Read-only property; a zero-based integer that specifies the index of the microphone, as reflected
in the array returned by
See also
Microphone.get()
Microphone.muted
Availability
Flash Player 6.
Usage
activeMicrophone.muted
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
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 {
466
Chapter 12: ActionScript Dictionary
,
Microphone.muted
Microphone.names
,
Microphone.names
) or allowed access (
false
Microphone.get()
,
,
Microphone.names
.
). When this value changes,
.
Microphone.onStatus
Microphone.onStatus
,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents