Get (Microphone.get Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

gain_pb.label = "Gain: %3";
gain_pb.mode = "manual";
gain_pb.setProgress(active_mic.gain, 100);
gain_nstep.value = active_mic.gain;
function changeGain() {
active_mic.setGain(gain_nstep.value);
gain_pb.setProgress(active_mic.gain, 100);
}
gain_nstep.addEventListener("change", changeGain);
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
setGain (Microphone.setGain method)

get (Microphone.get method)

public static get([index:Number]) : Microphone
Returns a reference to a Microphone object for capturing audio. To actually begin capturing
the audio, you must attach the Microphone object to a MovieClip object (see
MovieClip.attachAudio()
Unlike objects that you create using the
reference the same microphone. Thus, if your script contains the lines
and
Microphone.get()
(default) microphone.
In general, you shouldn't pass a value for
to 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
one the user prefers. You might use
capturing 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
dialog 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.)
788
ActionScript classes
MovieClip.getNextHighestDepth()
).
new
mic2 = Microphone.get()
index
, you might be trying to reference a microphone other than the
index
in rare cases--for example, if your application is
index
MovieClip.attachAudio()
method used in this example requires Flash Player
constructor, multiple calls to
, both
mic1
; simply use the
Microphone.get()
Microphone.get()
--Flash Player displays a Privacy
method.
Microphone.get()
mic1 =
and
reference the same
mic2
method
method-

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF