User Guide
394 ActionScript classes
See also
setMotionLevel (Camera.setMotionLevel method), onActivity (Camera.onActivity
handler)
muted (Camera.muted property)
public muted : Boolean [read-only]
A Boolean value that specifies whether the user has denied access to the camera (true) or
allowed access (
false) in the Flash Player Privacy Settings panel. When this value changes,
Camera.onStatus is invoked. For more information, see Camera.get().
Availability: ActionScript 1.0; Flash Player 6
Example
In the following example, an error message could be displayed if
my_cam.muted evaluates to
true. Create a new video instance by selecting New Video from the Library options menu.
Add an instance to the Stage and give it the instance name
my_video. Then add the following
ActionScript to Frame 1 of the Timeline:
var my_cam:Camera = Camera.get();
var my_video:Video;
my_video.attachVideo(my_cam);
my_cam.onStatus = function(infoObj:Object) {
if (my_cam.muted) {
// If user is denied access to their Camera, you can display an error
message here. You can display the user's Camera/Privacy settings again
using System.showSettings(0);
trace("User denied access to Camera");
System.showSettings(0);
}
};
See also
get (Camera.get method), onStatus (Camera.onStatus handler)