EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 323

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Camera.quality 323
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" and whose
level property is "Status".
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" 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().
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.muted
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()

Table of Contents

Related product manuals