Mouse - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Availability: ActionScript 1.0; Flash Player 6
Example
The following example turns on echo suppression if the user selects a CheckBox instance
called
useEchoSuppression_ch
displays the current activity level of the audio stream.
var useEchoSuppression_ch:mx.controls.CheckBox;
var activityLevel_pb:mx.controls.ProgressBar;
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);
activityLevel_pb.mode = "manual";
activityLevel_pb.label = "Activity Level: %3";
useEchoSuppression_ch.selected = active_mic.useEchoSuppression;
this.onEnterFrame = function() {
activityLevel_pb.setProgress(active_mic.activityLevel, 100);
};
var chListener:Object = new Object();
chListener.click = function(evt:Object) {
active_mic.setUseEchoSuppression(evt.target.selected);
};
useEchoSuppression_ch.addEventListener("click", chListener);
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
setUseEchoSuppression (Microphone.setUseEchoSuppression method)

Mouse

Object
|
+-Mouse
public class Mouse
extends Object
The Mouse class is a top-level class whose properties and methods you can access without
using a constructor. You can use the methods of the Mouse class to hide and show the mouse
pointer (cursor) in the SWF file. The mouse pointer is visible by default, but you can hide it
and implement a custom pointer that you create using a movie clip .
. The ProgressBar instance called
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
activityLevel_pb
method.
Mouse
805

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