motion_pb.label = "Motion is above "+my_cam.motionLevel;
} else {
motion_pb.setStyle("themeColor", "haloOrange");
motion_pb.label = "Motion is below "+my_cam.motionLevel;
}
};
function changeMotionTimeOut() {
my_cam.setMotionLevel(my_cam.motionLevel, motionTimeOut_nstep.value*1000);
}
motionTimeOut_nstep.addEventListener("change", changeMotionTimeOut);
motionTimeOut_nstep.value = my_cam.motionTimeOut/1000;
See also
Camera.onActivity
Camera.muted
Availability
Flash Player 6.
Usage
active_cam.muted:Boolean
Description
Read-only property; a Boolean value that specifies whether the user has denied access to the
camera (
) or allowed access (
true
value changes,
Camera.onStatus
Example
In the following example, an error message could be displayed if
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
,
Camera.get()
502
Chapter 7: ActionScript for Flash
,
Camera.setMotionLevel()
false
is invoked. For more information, see
Camera.onStatus
) in the Flash Player Privacy Settings panel. When this
Camera.get()
evaluates to true.
my_cam.muted
.
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers