MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificações Página 237

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 236
46
Parameters
activity A Boolean value set to true when the microphone starts detecting sound, false
when it stops.
Returns
Nothing.
Description
Event handler; invoked when the microphone starts or stops detecting sound. If you want to
respond to this event handler, you must create a function to process its
activity value.
To specify the amount of sound required to invoke Microphone.onActivity(true), and the
amount of time that must elapse without sound before
Microphone.onActivity(false) is
invoked, use Microphone.setSilenceLevel.
Example
The following example displays true or false in the Output window when the microphone
starts or stops detecting sound.
m = Microphone.get();
_root.attachAudio(m);
m.onActivity = function(mode)
{
trace(mode);
};
See also
Microphone.setSilenceLevel
Microphone.onStatus
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeMicrophone.onStatus = function(infoObject) {
// Your code here
}
Parameters
infoObject A parameter defined according to the status message. For details about this
parameter, see “Microphone information objects” on page 106.
Returns
Nothing.
Description
Event handler; invoked when the user allows or denies access to the microphone. If you want to
respond to this event handler, you must create a function to process the information object
generated by the microphone. For more information, see the Appendix, “Client-Side Information
Objects,” on page 105.
Vista de página 236
1 2 ... 232 233 234 235 236 237 238 239 240 241 242 ... 368 369

Comentários a estes Manuais

Sem comentários