![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.
activeMicrophone
.gain
Propiedad de sólo lectura; cantidad en que el micrófono aumenta el volumen de la señal. Los valores válidos oscilan entre 0 y 100, siendo 50 el valor predeterminado.
El ejemplo siguiente se asocia a la punta de una barra deslizante. Cuando se carga este clip, Flash comprueba el valor de myMic.gain
y proporciona un valor predeterminado si el valor es undefined. A continuación, se utiliza la posición _x
para establecer la ganancia del micrófono en el valor de preferencia del usuario.
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; }
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |