Camera.muted - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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
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
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
Camera.get(),
Camera.onStatus
) in the Flash Player Privacy Settings panel. When this
false
is invoked. For more information, see
my_video
Camera.get()
evaluates to true.
my_cam.muted
. Then add the following
Camera.muted
.
187

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents