MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifiche Pagina 233

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 232
42
When a movie tries to access the microphone returned by Microphone.get—for example, when
you issue
NetStream.attachAudio or MovieClip.attachAudio—the Flash Player displays a
Privacy dialog box that lets the user choose whether to allow or deny access to the microphone.
(Make sure your Stage size is at least 215 by 138 pixels; this is the minimum size Flash requires to
display the dialog box.)
When the user responds to this dialog box, the
Microphone.onStatus event handler returns an
information object that indicates the users response. To determine whether the user has denied or
allowed access to the camera without processing this event handler, use
Microphone.muted.
The user can also specify permanent privacy settings for a particular domain by right-clicking
(Windows) or Control-clicking (Macintosh) while a movie is playing, choosing Settings, opening
the Privacy panel, and selecting Remember.
You cant use ActionScript to set the Allow or Deny value for a user, but you can display the
Privacy panel for the user by using
System.showSettings(0). If the user selects Remember, the
Flash Player no longer displays the Privacy dialog box for movies from this domain.
If
Microphone.get returns null, either the microphone is in use by another application, or there
are no microphones installed on the system. To determine whether any microphones are installed,
use
Microphones.names.length. To display the Flash Player Microphone Settings panel, which
lets the user choose the microphone to be referenced by
Microphone.get, use
System.showSettings(2).
Vedere la pagina 232
1 2 ... 228 229 230 231 232 233 234 235 236 237 238 ... 368 369

Commenti su questo manuale

Nessun commento