Flash Player 6。
activeMicrophone
.gain
只读属性;麦克风信号的提升量。有效值的范围是 0 到 100。默认值为 50。
以下示例附加到滑动条的尖端。当加载此剪辑时,Flash 将检查值 myMic.gain
,如果该值未定义,则提供默认值。然后,使用 _x
位置将麦克风的增益设置为用户的首选项。
onClipEvent (load) { if (_root.myMic.gain == undefined) { _root.myMic.setGain = 75; } this._x = _root.myMic.gain; _root.txt_micgain = this._x; left = this._x; right = left+50; top = this._y; bottom = top; } on (press) { startDrag(this, false, left, top, right, bottom); this._xscale = 100; this._yscale = 100; } on (release, releaseOutside) { stopDrag(); g = (this._x-50)*2; _root.myMic.setGain(g); _root.txt_micgain = g; this._xscale = 100; this._yscale = 100; }