MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 212

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 211
Client-Side Communication ActionScript 21
Camera.onStatus
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
activeCamera.onStatus = function(infoObject) {
// Your code here
}
Parameters
infoObject A parameter defined according to the status message. For details about this
parameter, see “Camera information objects” on page 106.
Returns
Nothing.
Description
Event handler; invoked when the user allows or denies access to the camera. If you want to
respond to this event handler, you must create a function to process the information object
generated by the camera. For more information, see the Appendix, “Client-Side Information
Objects,” on page 105.
When a movie tries to access the camera, the Flash Player displays a Privacy dialog box that lets
the user choose whether to allow or deny access.
If the user allows access, the Camera.muted property is set to false, and this handler is
invoked with an information object whose
code property is Camera.Unmuted.
If the user denies access, the Camera.muted property is set to true, and this handler is invoked
with an information object whose
code property is Camera.Muted.
To determine whether the user has denied or allowed access to the camera without processing this
event handler, use
Camera.muted.
Note: If the user chooses to permanently allow or deny access for all movies from a specified domain, this handler is
not invoked for movies from that domain unless the user later changes the privacy setting. For more information,
see Camera.get.
Example
The following callback function displays a message whenever the user allows or denies access to
the camera.
myCam = Camera.get();
myVideoObject.attachVideo(myCam);
myCam.onStatus = function(infoMsg) {
if(infoMsg.code == "Camera.Muted"){
trace("User denies access to the camera");
}
else
trace("User allows access to the camera");
}
// Change the Allow or Deny value to invoke the function
System.showSettings(0);
See also
Camera.get, Camera.muted, System.showSettings
Seitenansicht 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare