Rate (Microphone.rate Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

this.createTextField("muted_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
muted_txt.autoSize = true;
muted_txt.html = true;
muted_txt.selectable = false;
muted_txt.htmlText = "<a href=\"asfunction:System.showSettings\"><u>Click
Here</u></a> to Allow/Deny access.";
this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);
active_mic.onStatus = function(infoObj:Object) {
status_txt._visible = active_mic.muted;
muted_txt.htmlText = "Status: <a
href=\"asfunction:System.showSettings\"><u>"+infoObj.code+"</u></a>";
};
this.createTextField("status_txt", this.getNextHighestDepth(), 0, 0, 100,
22);
status_txt.html = true;
status_txt.autoSize = true;
status_txt.htmlText = "<font size='72' color='#FF0000'>muted</font>";
status_txt._x = (Stage.width-status_txt._width)/2;
status_txt._y = (Stage.height-status_txt._height)/2;
status_txt._visible = active_mic.muted;
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
get (Microphone.get method)
(System.showSettings method)

rate (Microphone.rate property)

public rate : Number [read-only]
The rate at which the microphone is capturing sound, in kHz. The default value is 8 kHz if
your sound capture device supports this value. Otherwise, the default value is the next
available capture level above 8 kHz that your sound capture device supports, usually 11 kHz.
To set this value, use
Availability: ActionScript 1.0; Flash Player 6
MovieClip.getNextHighestDepth()
,
muted (Microphone.muted property)
,
onStatus (System.onStatus handler)
Microphone.setRate()
method used in this example requires Flash Player
.
method.
,
showSettings
Microphone
795

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