User Guide
452 Chapter 2: ActionScript Language Reference
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
System.showSettings(0). If the user selects Remember,
Flash Player no longer displays the Privacy dialog box for SWF files from this domain.
If
Microphone.get() returns null, either the microphone is in use by another application, or
there are no microphones installed on the system. To determine whether any microphones are
installed, use
Microphones.names.length. To display the Flash Player Microphone Settings
panel, which lets the user choose the microphone to be referenced by
Microphone.get(), use
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(), System.showSettings()