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()
there are no microphones installed on the system. To determine whether any microphones are
installed, use
Microphones.names.length
panel, which lets the user choose the microphone to be referenced by
System.showSettings(2)
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);
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);
See also
Microphone.index, Microphone.muted, Microphone.names, Microphone.onStatus,
MovieClip.attachAudio(),
452
Chapter 2: ActionScript Language Reference
System.showSettings(0)
returns
, either the microphone is in use by another application, or
null
. To display the Flash Player Microphone Settings
.
System.showSettings()
. If the user selects Remember,
Microphone.get()
, use
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers