![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.
active_cam
.onStatus = function(infoObject
) { // your statements here }
infoObject
A parameter defined according to the status message.
Nothing.
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.
When a SWF file tries to access the camera, Flash Player displays a Privacy dialog box that lets the user choose whether to allow or deny access.
Camera.muted
property is set to false
, and this handler is invoked with an information object whose code
property is "Camera.Unmuted"
and whose level
property is "Status"
.Camera.muted
property is set to true
, and this handler is invoked with an information object whose code
property is "Camera.Muted"
and whose level
property is "Status"
.To determine whether the user has denied or allowed access to the camera without processing this event handler, use the Camera.muted
property.
Note: If the user chooses to permanently allow or deny access for all SWF files from a specified domain, this handler is not invoked for SWF files from that domain unless the user later changes the privacy setting. For more information, see Camera.get()
.
The following event handler 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);
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |