Silencetimeout (Microphone.silencetimeout Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

silenceLevel_pb.setProgress(active_mic.activityLevel, 100);
};
active_mic.onActivity = function(active:Boolean) {
if (active) {
silenceLevel_pb.indeterminate = false;
silenceLevel_pb.setStyle("themeColor", "haloGreen");
silenceLevel_pb.label = "Activity level: %3";
} else {
silenceLevel_pb.indeterminate = true;
silenceLevel_pb.setStyle("themeColor", "0xFF0000");
silenceLevel_pb.label = "Activity level: (inactive)";
}
};
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
gain (Microphone.gain property)
method)
silenceTimeOut (Microphone.silenceTimeOut
property)
public silenceTimeOut : Number [read-only]
A numeric value representing the number of milliseconds between the time the microphone
stops detecting sound and the time
default value is 2000 (2 seconds).
To set this value, use
Availability: ActionScript 1.0; Flash Player 6
Example
The following example enables the user to control the amount of time between when the
microphone stops detecting sound and when
The user controls this value using a NumericStepper instance called silenceTimeOut_nstep.
The ProgressBar instance called
whether the audio stream is considered silent. Otherwise, it displays the activity level of the
audio stream.
var silenceLevel_pb:mx.controls.ProgressBar;
var silenceTimeOut_nstep:mx.controls.NumericStepper;
MovieClip.getNextHighestDepth()
,
setSilenceLevel (Microphone.setSilenceLevel
Microphone.onActivity(false)
Microphone.setSilenceLevel()
silenceLevel_pb
method used in this example requires Flash Player
.
Microphone.onActivity(false)
modifies its appearance depending on
method.
is invoked. The
is invoked.
Microphone
803

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF