User Guide
60 Client-Side ActionScript Language Reference
silenceTimeOut_nstep.addEventListener("change", nstepListener);
this.onEnterFrame = function() {
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() method used in this example requires Flash Player
7 or later. If your SWF file includes a v2 component (version 2 of the Macromedia
Component Architecture), use the DepthManager class from the component framework
instead of the
MovieClip.getNextHighestDepth() method.
See also
Microphone.onActivity, Microphone.setSilenceLevel()
Microphone.useEchoSuppression
Availability
■ Flash Player 6.
■ Flash Media Server (not required).
Usage
public useEchoSuppression : Boolean [read-only]
Description
Property (read-only); a Boolean value of true if echo suppression is enabled; otherwise,
false. The default value is false unless the user has selected Reduce Echo in the Flash Player
Microphone Settings panel.