In general, you shouldn't pass a value for
return a reference to the default microphone. By means of the Microphone settings panel
(discussed later in this section), the user can specify the default microphone Flash should use. If
you pass a value for
index
user prefers. You might use
audio from two microphones at the same time.
When a SWF file tries to access the microphone returned by the
for example, when you issue
box that lets the user choose whether to allow or deny access to the microphone. (Make sure your
Stage size is at least 215 x 138 pixels; this is the minimum size Flash requires to display the
dialog box.)
When the user responds to this dialog box, the
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
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.
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)
index
, you might be trying to reference a microphone other than the one the
in rare cases—for example, if your application is capturing
index
MovieClip.attachAudio()
returns
, either the microphone is in use by another application, or
null
. To display the Flash Player Microphone Settings
.
; simply use the
Microphone.get()
Microphone.get()
— Flash Player displays a Privacy dialog
Microphone.onStatus
method to
method—
event handler returns an
.
Microphone.muted
, use
Microphone.get()
Microphone.get()
465
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?