When the user responds to this dialog box, the
an information object that indicates the user's response. To determine whether the user has
denied or allowed access to the camera without processing this event handler, use
.
Microphone.muted
The user can also specify permanent privacy settings for a particular domain by right-clicking
(Windows) or Control-clicking (Macintosh) while a SWF file is playing, choosing Settings,
opening the Privacy panel, and selecting Remember.
You can't use ActionScript to set the Allow or Deny value for a user, but you can display the
Privacy panel for the user by using
Flash Player no longer displays the Privacy dialog box for SWF files from this domain.
If
Microphone.get()
or there are no microphones installed on the system. To determine whether any microphones
are installed, use
Microphones.names.length
Settings panel, which lets the user choose the microphone to be referenced by
, use
Microphone.get()
Availability: ActionScript 1.0; Flash Player 6 - Note: The correct syntax is Microphone.get().
To assign the Microphone object to a variable, use syntax like active_mic = Microphone.get().
Parameters
[optional] - A zero-based integer that specifies which microphone to get, as
index:Number
determined from the array that
(which is recommended for most applications), omit this parameter.
Returns
-
Microphone
If
is not specified, this method returns a reference to the default microphone or, if it
index
is not available, to the first available microphone. If no microphones are available or
installed, the method returns
If
is specified, this method returns a reference to the requested microphone, or
index
if it is not available.
null
Example
The following example lets the user specify the default microphone, and then captures audio
and plays it back locally. To avoid feedback, you may want to test this code while wearing
headphones.
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
System.showSettings(2);
System.showSettings(0)
returns
, either the microphone is in use by another application,
null
System.showSettings(2)
Microphone.names
.
null
Microphone.onStatus
. If the user selects Remember,
. To display the Flash Player Microphone
.
contains. To get the default microphone
event handler returns
Microphone
789
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?