•
If the user allows access, the
invoked with an information object whose
property is
level
•
If the user denies access, the
with an information object whose
property is
"Status"
To determine whether the user has denied or allowed access to the camera without processing this
event handler, use the
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
Example
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);
See also
,
Camera.get()
Camera.quality
Availability
Flash Player 6.
Usage
active_cam.quality
Description
Read-only property; an integer specifying the required level of picture quality, as determined by
the amount of compression being applied to each video frame. Acceptable quality values range
from 1 (lowest quality, maximum compression) to 100 (highest quality, no compression). The
default value is 0, which means that picture quality can vary as needed to avoid exceeding
available bandwidth.
See also
Camera.setQuality()
Camera.muted
.
"Status"
Camera.muted
code
.
Camera.muted
Camera.muted
property is set to
property is
code
property is set to
property is
"Camera.Muted"
property.
.
Camera.get()
, and this handler is
false
and whose
"Camera.Unmuted"
, and this handler is invoked
true
and whose
level
Camera.quality
323
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers