MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 538

Actionscript language reference
Table of Contents

Advertisement

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(),
Microphone.index
Availability
Flash Player 6.
Usage
active_mic.index:Number
Description
Read-only property; a zero-based integer that specifies the index of the microphone, as reflected
in the array returned by
Example
The following example displays the names of the sound capturing devices available on your
computer system in a ComboBox instance called
called
, displays the index microphone. You can use the ComboBox to switch between
mic_lbl
the devices.
var mic_lbl:mx.controls.Label;
var mic_cb:mx.controls.ComboBox;
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);
538
Chapter 7: ActionScript for Flash
System.showSettings(0)
returns
, either the microphone is in use by another application, or
null
. To display the Flash Player Microphone Settings
.
System.showSettings()
.
Microphone.names
. If the user selects Remember,
Microphone.get()
. An instance of the Label component,
mic_cb
, use

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents